DumpsPanda.com
Linux Foundation
CKA Exam
Certified Kubernetes Administrator (CKA) Program Exam
Questions & Answers
(Demo Version – Limited Content)
Thank you for Downloading CKA exam PDF Demo
Get Full File:
https://dumpspanda.com/linux-foundation-cka-exam
https://dumpspanda.com
, Questions & Answers PDF Page 2
Version: 4.0
Question: 1
Create a namespace called 'development' and a pod with image nginx called nginx on this
namespace.
Solution
kubectl create namespace development
kubectl run nginx --image=nginx --restart=Never -n development
Question: 2
Create a nginx pod with label env=test in engineering namespace
See the solution below.
Solution
kubectl run nginx --image=nginx --restart=Never --labels=env=test --namespace=engineering --dry-
run -o yaml > nginx-pod.yaml
kubectl run nginx --image=nginx --restart=Never --labels=env=test --namespace=engineering --dry-
run -o yaml | kubectl create -n engineering -f –
YAML File:
apiVersion: v1
kind: Pod
metadata:
name: nginx
namespace: engineering
labels:
env: test
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
restartPolicy: Never
https://dumpspanda.com