新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
cd /kiamol/ch04
|
||||
|
||||
kubectl create configmap sleep-config-literal --from-literal=kiamol.section='4.1'
|
||||
kubectl get cm sleep-config-literal
|
||||
kubectl describe cm sleep-config-literal
|
||||
kubectl apply -f sleep/sleep-with-configMap-env.yaml
|
||||
kubectl exec deploy/sleep -- sh -c 'printenv | grep "^KIAMOL"'
|
||||
Reference in New Issue
Block a user