layout | title | permalink | nav_order |
---|---|---|---|
page |
ConfigMap and Secret |
/config |
7 |
kubectl apply -f exercice-files/lab7-1.yaml
kubectl apply -n ns1 -f exercice-files/lab7-2.yaml
kubectl apply -n ns2 -f exercice-files/lab7-2.yaml
kubectl get pod -A -l app=test-cm-sec
kubectl exec -n {NAMESPACE} -i {POD NAME} -- wget -qO- http://127.0.0.1
kubectl delete -f exercice-files/lab7-1.yaml
(Deleting a namespace trigger deletion of its resource)