|
How to create Kubernetes ConfigMap from Files
Author: Venkata Sudhakar
The below example shows how to create Kubernetes ConfigMap from a file.
05 | name: example-configmap |
07 | # Configuration values can be set as key-value properties |
10 | connection.url: jdbc:mysql: |
12 | # Or set as complete file contents (even JSON!) |
14 | aws.access.key=AAAAAAAAAA |
15 | aws.secret.key=BBBBBBBBBB |
18 | $ kubectl apply -f example-cfg.yml |
19 | configmap/example-configmap created |
|
|