CORRECT TEXT
Create and configure the service front-end-service so it's accessible through NodePort and routes to the existing pod named front-end.
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA8 B.JPG
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Print pod name and start time to “/opt/pod-status” file
Solution:
kubect1 get pods -o=jsonpath='{range
items[*]}{.metadata.name}{"\t"}{.status.podIP}{"\n"}{end}'
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Score: 4%
Task
Schedule a pod as follows:
• Name: nginx-kusc00401
• Image: nginx
• Node selector: disk=ssd
Solution:
Solution:
#yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-kusc00401
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
nodeSelector:
disk: spinning
#
kubectl create -f node-select.yaml
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Task Weight: 4%
Task
Schedule a Pod as follows:
• Name: kucc1
• App Containers: 2
• Container Name/Images: o nginx
o consul
Solution:
Solution:
Graphical user interface, text, application
Description automatically generated
Text Description automatically generated
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
For this item, you will have to ssh to the nodes ik8s-master-0 and ik8s-node-0 and complete all tasks on these nodes. Ensure that you return to the base node (hostname: node-1) when you have completed this item.
Context
As an administrator of a small development team, you have been asked to set up a Kubernetes cluster to test the viability of a new application.
Task
You must use kubeadm to perform this task. Any kubeadm invocations will require the use of the --ignore-preflight-errors=all option.
✑ Configure the node ik8s-master-O as a master node. .
✑ Join the node ik8s-node-o to the cluster.
Solution:
solution
You must use the kubeadm configuration file located at /etc/kubeadm.conf when initializingyour cluster.
You may use any CNI plugin to complete this task, but if you don't have your favourite CNI plugin's manifest URL at hand, Calico is one popular option:
https://docs.projectcalico.org/v3.14/manifests/calico.yaml
Docker is already installed on both nodes and apt has been configured so that you can install the required tools.
Does this meet the goal?
Correct Answer:
A