Hi All,
I encountered issue on the following question on ertified Kubernetes Administrator (CKA) Mock Exam Series
Question 1
SECTION: SERVICE NETWORKING
For this question, please set the context to cluster3 by running:
kubectl config use-context cluster3
Deploy a messaging-cka07-svcn pod using the redis:alpine image with the labels set to tier=msg.
Issue:
its checking the wrong context
Question 2:
For this question, please set the context to cluster3 by running:
kubectl config use-context cluster3
Create a ReplicaSet with name checker-cka10-svcn in ns-12345-svcn namespace with image registry.k8s.io/e2e-test-images/jessie-dnsutils:1.3.
Issue:
its checking the wrong context
Hi @ody_factor,
Can you please elaborate more? What do you mean by “Checking the wrong context”?
Regards,
Hi @Tej-Singh-Rana,
On the question, it asked to do the configuration on context 3, however, on the answers both are checking the answers on context 2.
Hi @Tej-Singh-Rana,
I was able to only copy one of the question and solution:
SECTION: SERVICE NETWORKING
For this question, please set the context to cluster3 by running:
kubectl config use-context cluster3
Deploy a messaging-cka07-svcn pod using the redis:alpine image with the labels set to tier=msg.
Now create a service messaging-service-cka07-svcn to expose the messaging-cka07-svcn application within the cluster on port 6379.
TIP: Use imperative commands.
Solution:
Switch to cluster2 :
kubectl config use-context cluster3
On student-node, use the command kubectl run messaging-cka07-svcn --image=redis:alpine -l tier=msg
Now run the command: kubectl expose pod messaging-cka07-svcn --port=6379 --name messaging-service-cka07-svcn.
Only the solution the instruction switch to cluster2 however the command is “kubectl config use-context cluster3”
- this performed this task on cluster3.