Secrets
Step 1: Configure Secret
kubectl apply -f secrets.yamlStep 2: Explore the created Secret
kubectl describe secret testsecretStep 3: Create a Deployment
kubectl apply -f secretsdeploy.yamlStep 4: View Deployments
kubectl get deployments.appsStep 5: View Pods
kubectl get pods -o wideLogin to the Pod and Check the Secrets by typing ENV
kubectl exec <<podname>> -c <container-name> -- envAdditional Commands
Describe all Secrets
kubectl describe secretsClear Everything in the current namespace
kubectl delete all --all -n defaultLast updated
Was this helpful?