Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Automate Initial Configuration Load with Kubernetes ConfigMap

Load Initial Configuration with Kubernetes ConfigMap

ConfigMap is Kubernetes standard specification.

ConfigMaps allow you to decouple configuration artifacts from image content to keep containerized applications portable. The cSRX uses ConfigMaps to load initial configuration file at cSRX container startup.

You can also add license from license key file using the steps similar to loading the initial configuration file in kubernetes.

To create cSRX ConfigMap according to cSRX initial configurations:

  1. Create the cSRX.yaml file on Kubernetes-master and add the text content to deploy cSRX Pod with ConfigMap:

    root@kubernetes-master:~#kubectl create -f pod_with_configmap.txt

  2. Run the following command to create cSRX using yaml file.

    root@kubernetes-master:~#kubectl apply -f csrx.yaml

  3. Run the following command to start cSRX in CLI mode

    root@kubernetes-master:~#kubectl exec -it csrx bash

    root@csrx:~#cli

    root@csrx#configure

  4. After the cSRX Pod startup, you can check the initial configuration from cSRX CLI.

    root@csrx> show