Difference between revisions of "Kind: ConfigMap"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
kind: ConfigMap | kind: ConfigMap | ||
metadata: | metadata: | ||
− | name: nginx-config | + | name: [[nginx-config]] |
namespace: [[nginx-ingress]] | namespace: [[nginx-ingress]] | ||
data: | data: |
Revision as of 13:05, 19 September 2023
https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/
ConfigMap
apiVersion: v1 kind: ConfigMap metadata: ... data: ... immutable: true
apiVersion: v1 kind: ConfigMap metadata: name: nginx-config namespace: nginx-ingress data: proxy-protocol: "True" real-ip-header: "proxy_protocol" set-real-ip-from: "0.0.0.0/0"
apiVersion: v1 kind: ConfigMap metadata: name: game-demo data: # property-like keys; each key maps to a simple value player_initial_lives: "3" ui_properties_file_name: "user-interface.properties" # file-like keys game.properties: | enemy.types=aliens,monsters player.maximum-lives=5 user-interface.properties: | color.good=purple color.bad=yellow allow.textmode=true
Related
kubectl create configmap
kind: Ingress
- CKA v1.23 Use ConfigMaps and Secrets to configure applications
- Corefile
- Pushing a Helm chart to ECR
See also
kind:
[Pod | Ingress | ClusterConfiguration
|Config | ConfigMap | ServiceAccount | Deployment | List | Secret | Status ], spec: metadata: data:
- ConfigMaps:
kubectl [ get | edit | describe | create | delete ] configmaps
,aws-auth
, Kustomize,kind: ConfigMap, ConfigMapRef, envFrom
Advertising: