Config Map

Some configmap examples

configmap.yaml

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: my-configmap-env
data:
  dbhost: postgresql
  DEBUG: "false"
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: my-configmap-txt-file
data:
  database.sql: |
    some text in file;
    some text in file;
    some text in file;

connect configmap into deployment

Last updated