Secrets
Step 1: Configure Secret
kubectl apply -f secrets.yaml
Step 2: Explore the created Secret
kubectl describe secret testsecret
Step 3: Create a Deployment
kubectl apply -f secretsdeploy.yaml
Step 4: View Deployments
kubectl get deployments.apps
Step 5: View Pods
kubectl get pods -o wide
Login to the Pod and Check the Secrets by typing ENV
kubectl exec <<podname>> -c <container-name> -- env
Additional Commands
Describe all Secrets
kubectl describe secrets
Clear Everything in the current namespace
kubectl delete all --all -n default
Last updated
Was this helpful?