Topic outline

  • Kubernetes ConfigMaps

    A ConfigMap is an object consisting of key-value pairs which can be injected into your application.

    With a ConfigMap you can separate configuration from your Pods. This way, you can prevent hardcoding configuration data.

    ConfigMaps are useful for storing and sharing non-sensitive, unencrypted configuration information. Sensitive information should be stored in a Secret instead.

    Exercise:

    Create a ConfigMap named kubernauts that contains a key named dev with the value ops.

    With the --from-literal argument passed to the k create configmap command you can create a ConfigMap containing a text value.