CORRECT TEXT
Create a pod as follows:
✑ Name: mongo
✑ Using Image: mongo
✑ In a new Kubernetes namespace named: my-website
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA9 B.JPG
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Perform the following tasks:
✑ Add an init container to hungry-bear (which has been defined in spec file
/opt/KUCC00108/pod-spec-KUCC00108.yaml)
✑ The init container should create an empty file named/workdir/calm.txt
✑ If /workdir/calm.txt is not detected, the pod should exit
✑ Once the spec file has been updated with the init container definition, the pod should be created
Correct Answer:
Seethesolutionbelow.
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 B.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 D.JPG
CORRECT TEXT
Create a file:
/opt/KUCC00302/kucc00302.txt that lists all pods that implement service baz in namespace development.
The format of the file should be one pod name per line.
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA11 B.JPG
F:WorkData Entry WorkData Entry20200827CKA11 C.JPG
F:WorkData Entry WorkData Entry20200827CKA11 D.JPG
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
List pod logs named “frontend” and search for the pattern “started” and write it to a file “/opt/error-logs”
Solution:
Kubectl logs frontend | grep -i “started” > /opt/error-logs
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Score: 4%
Task
Create a persistent volume with name app-data , of capacity 1Gi and access mode ReadOnlyMany. The type of volume is hostPath and its location is /srv/app-data .
Solution:
Solution:
#vi pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: app-config
spec:
capacity:
storage: 1Gi
accessModes:
- ReadOnlyMany
hostPath:
path: /srv/app-config
#
kubectl create -f pv.yaml
Does this meet the goal?
Correct Answer:
A