Is it difficult for you to decide to purchase CNCF CKA exam dumps questions? CertQueen provides FREE online Certified Kubernetes Administrator CKA exam questions below, and you can test your CKA skills first, and then decide whether to buy the full version or not. We promise you get the following advantages after purchasing our CKA exam dumps questions.
1.Free update in ONE year from the date of your purchase.
2.Full payment fee refund if you fail CKA exam with the dumps
Full CKA Exam Dump Here
Latest CKA Exam Dumps Questions
The dumps for CKA exam was last updated on Jul 21,2025
.
Viewing page 1 out of 5 pages.
Viewing questions 1 out of 25 questions
Question#4
Create an nginx pod which loads the secret as environment variables
// create a yml file
kubectl run nginx --image=nginx --restart=Never --dry-run -o yaml > nginx.yml
// add env section below and create
vim nginx.yaml
apiVersion: v1
kind: Pod
metadata:
labels:
run: nginx
name: nginx
spec:
containers:
- image: nginx
name: nginx
envFrom:
- secretRef:
name: my-secret
restartPolicy: Never
kubectl apply -f nginx.yaml
//verify
kubectl exec -it nginx env
A. Solution:
// create a yml file
kubectl run nginx --image=nginx --restart=Never --dry-run -o yaml > nginx.yml
// add env section below and create
vim nginx.yaml
run: nginx
name: nginx
spec:
containers:
- image: nginx
name: nginx
envFrom:
- secretRef:
name: my-secret
restartPolicy: Never
kubectl apply -f nginx.yaml
//verify
kubectl exec -it nginx env