ืืฉืื ืืื ื ืืื:
ื ืืฆืืจ ืงืืืฅ:
vi green-config.yaml
ื ืื ืืก:
apiVersion: v1
kind: ConfigMap
metadata:
name: green-config
data:
color.txt: green
hello-from-green.js: |
console.log("Hello from");
console.log("green ConfigMap");
color_config_path: /mount/config/color.txt
ืืฉ ืื ื 3 Keys:
color.txt โ ืืืคืืข ืืงืืืฅhello-from-green.js โ ืงืืืฅ JS ืืจืืื ืฉืืจืืชcolor_config_path โ ืขืจื ืฉื ืจืฆื ืืืขืืืจ ืึพEnvironment Variableืื ืงืืืช ืืื ืฉื Kubernetes โ
ืืืื ืื ืคืฉืื Key-Value pairs.
ืืืฉืืขืืช ื ืงืืขืช ืขื ืืืื ื.