SIMULATION
Task Weight: 4%

Task
Scale the deployment webserver to 3 pods.
Solution:

SIMULATION
Score: 13%

Task
A Kubernetes worker node, named wk8s-node-0 is in state NotReady. Investigate why this is the case, and perform any appropriate steps to bring the node to a Ready state, ensuring that any changes are made permanent.

Solution:
sudo -i
systemctl status kubelet
systemctl start kubelet
systemctl enable kubelet
SIMULATION
Score: 4%

Context
You have been asked to create a new ClusterRole for a deployment pipeline and bind it to a specific ServiceAccount scoped to a specific namespace.
Task
Create a new ClusterRole named deployment-clusterrole, which only allows to create the following resource types:
* Deployment
* StatefulSet
* DaemonSet
Create a new ServiceAccount named cicd-token in the existing namespace app-team1.
Bind the new ClusterRole deployment-clusterrole lo the new ServiceAccount cicd-token , limited to the namespace app-team1.
Solution:
Task should be complete on node k8s -1 master, 2 worker for this connect use command
[student@node-1] > ssh k8s
kubectl create clusterrole deployment-clusterrole --verb=create --resource=deployments,statefulsets,daemonsets
kubectl create serviceaccount cicd-token --namespace=app-team1
kubectl create rolebinding deployment-clusterrole --clusterrole=deployment-clusterrole --serviceaccount=default:cicd-token --namespace=app-team1
SIMULATION
Quick Reference
ConfigMaps,
Documentation Deployments,
Namespace
You must connect to the correct host . Failure to do so may result in a zero score.
[candidate@base] $ ssh cka000048b
Task
An NGINX Deployment named nginx-static is running in the nginx-static namespace. It is configured using a ConfigMap named nginx-config .
First, update the nginx-config ConfigMap to also allow TLSv1.2. connections.
You may re-create, restart, or scale resources as necessary.
You can use the following command to test the changes:
[candidate@cka000048b] $ curl -- tls-max
1.2 https://web.k8s.local
Task Summary
SSH into cka000048b
Update the nginx-config ConfigMap in the nginx-static namespace to allow TLSv1.2
Ensure the nginx-static Deployment picks up the new config
Verify the change using the provided curl command
Step-by-Step Instructions
Step 1: SSH into the correct host
ssh cka000048b
Step 2: Get the ConfigMap
kubectl get configmap nginx-config -n nginx-static -o yaml > nginx-config.yaml
Open the file for editing:
nano nginx-config.yaml
Look for the TLS configuration in the data field. You are likely to find something like:
ssl_protocols TLSv1.3;
Modify it to include TLSv1.2 as well:
ssl_protocols TLSv1.2 TLSv1.3;
Save and exit the file.
Now update the ConfigMap:
kubectl apply -f nginx-config.yaml
Step 3: Restart the NGINX pods to pick up the new ConfigMap
Pods will not reload a ConfigMap automatically unless it's mounted in a way that supports dynamic reload and the app is watching for it (NGINX typically doesn't by default).
The safest way is to restart the pods:
Option 1: Roll the deployment
kubectl rollout restart deployment nginx-static -n nginx-static
Option 2: Delete pods to force recreation
kubectl delete pod -n nginx-static -l app=nginx-static
Step 4: Verify using curl
Use the provided curl command to confirm that TLS 1.2 is accepted:
curl --tls-max 1.2 https://web.k8s.local
A successful response means the TLS configuration is correct.
Final Command Summary
ssh cka000048b
kubectl get configmap nginx-config -n nginx-static -o yaml > nginx-config.yaml
nano nginx-config.yaml # Modify to include 'ssl_protocols TLSv1.2 TLSv1.3;'
kubectl apply -f nginx-config.yaml
kubectl rollout restart deployment nginx-static -n nginx-static
# or
kubectl delete pod -n nginx-static -l app=nginx-static
curl --tls-max 1.2 https://web.k8s.local
SIMULATION
Print pod name and start time to ''/opt/pod-status'' file
kubect1 get pods -o=jsonpath='{range
items[*]}{.metadata.name}{'\t'}{.status.podIP}{'\n'}{end}'
Daniel Baker
1 month agoEmma Rivera
2 months agoJason Roberts
2 months agoAnthony Moore
3 months agoKaren Moore
3 months agoMonica Turner
4 months agoHeather Sanchez
4 months agoSteven Cooper
5 months agoDaniel Mitchell
5 months agoJennifer Stewart
6 months agoRonald Bell
6 months agoAngela Morris
5 months agoJessica Johnson
5 months agoSteven Williams
6 months agoMaria Torres
5 months agoSharon Edwards
6 months agoRory
7 months agoVashti
7 months agoDorathy
7 months agoBillye
8 months agoHillary
8 months agoCarlee
8 months agoLaurene
8 months agoRobt
9 months agoLenna
9 months agoAyesha
9 months agoElfrieda
9 months agoLynelle
10 months agoUla
10 months agoWilda
10 months agoErnest
10 months agoLettie
10 months agoColeen
11 months agoNoel
11 months agoRuthann
11 months agoMartina
12 months agoHolley
12 months agoTy
1 year agoCatherin
1 year agoJaney
1 year agoAdela
1 year agoMerissa
1 year agoJaime
1 year agoGerald
1 year agoAnjelica
1 year agoAlberto
1 year agoLottie
1 year agoRossana
2 years agoChantell
2 years agoLai
2 years agoKanisha
2 years agoAlonzo
2 years agoBernadine
2 years agoTresa
2 years agoRochell
2 years agoElvera
2 years agoShawnta
2 years agoOsvaldo
2 years agoNgoc
2 years agoRyan
2 years agoDaren
2 years agoJustine
2 years agoGeraldine
2 years agoDominque
2 years agoDyan
2 years agoRozella
2 years agoRoosevelt
2 years agoLoren
2 years agoNorah
2 years agorimoha Kellis
3 years ago