Policies

Nirmata offers a rich set of policies that can be used to decouple environment specific information from application definition. This allows your application to be more portable across clusters and across cloud providers.

Here is a summary of the available policies. Each one of these is described in more detail in the sections below.

Policy Description
Config Maps Used to provide environment specific configuration for your applications
Secrets Used to provide environment specific secrets for your applications
Patch Policies Used to override properties in the application configuration based on the environment
Cluster Policies Used to create new Kubernetes Clusters

Config Maps

Config Map policies is used to provide environment specific configuration for your applications. For example, if you have an application that uses a proxy such as nginx and you want to enforce specific configuration in different environments, e.g. Development vs Production, you can use the Config Map policy to provide the configuration instead of creating and managing different application manifests. This makes your application manifests more portable.

Creating a Config Map Policy

To create a config map policy, you need to provide:

Secrets

Secrets policies is used to provide environment specific secrets for your applications. For example, if you have an application that uses a database and you want to enable different secrets in different environments, e.g. Development vs Production, you can use the Config Map policy to provide the secrets instead of creating and managing different application manifests. This makes your application manifests more portable.

Creating a Secret Policy

To create a secret policy, you need to provide:

Patch Policy

A patch policy allows you to override settings in your Kubernetes Resource manifests for a selected namespace. For example, if you want to use specific load balancer settings for certain applications you can configure a patch policy for the Service Resource to add annotations for Load Balancer settings.

To create a patch policy, you need to provide:

To add a patch operation, you need to provide:

Cluster Policy

A cluster policy is used to define the configuration of your cluster. For details of how to create a cluster policy, see Cluster Policies.