apiVersion: v1
kind: ConfigMap
metadata:
name: mongodb-configmap
data:
database_url: mongodb-service
Note: The value in the data section could be mapped to 202202181227
apiVersion: v1
kind: ConfigMap
metadata:
name: mongodb-configmap
data:
database_url: mongodb-service
Note: The value in the data section could be mapped to 202202181227
Note: To get the key’s value from 202202181250 and 202202181248, define secretKeyRef
or configMapKeyRef
in the scope of valueFrom
.
See 202202181250#