Config

Last updated 17 days ago

Config Maps

The ConfigMap API resource holds key-value pairs of configuration data that can be consumed in pods or used to store configuration data for system components such as controllers.

For more information about Config Maps checkout the Kubernetes User Guide.

In this Tutorial you'll learn how to create a Config Map

Config Map Sample

Deploy kubernetic/configmap-sample Chart.

Here is the Config Map definition:

configmap-sample.yaml
volumeMount-pod.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}
data:
key-a: bob
key-b: alice
key-c: |
This is a multiline
data value

Now go to the Config Maps section. You'll see the configmap-sample Config Map.

Pod Management > Config

Cleanup

Go to the Releases section and delete the release of the configmap-sample Chart.