top of page
Search

CKA EXAM QS-4 2025

Question 4:


All WorldPress Application in the relative-fawn namespace consist of:

⦁ A wordPress Deployment with 3 replicas


Adjust all pod resource requests as follow:

Devide node resources evenly across all 3 Pods.


⦁ Give each Pod a fair share of CPU and memory.

⦁ Add enough overhead to keep the node stable.


Use the exact some requests for both containers and init containers. You are not required to change any resource limits.

It may help to temporarily scale the WordPress Deployment to 0 replicas while updating the resource requests.


After updates, confirm:

All Pods are running and ready.

=============================================================

Basically — you’re tuning the resource requests for the WordPress Deployment so it fairly shares the node’s CPU and memory among 3 Pods, without overloading the node.


This tests your understanding of resource requests, node allocatable resources, and Deployment updates in Kubernetes.

=======================================================


#kubectl get ns relative-fawn

# kubect get deployment -n relative-fawn

# kubectl scale --replicas=0 deployment wordpress -n relative-fawn


Modify Deployment:

# kubectl edit deployment wordpress -n relative-fawn


Search resources under template.spec.containers


resources:

limits:

cpu: 600m ---> Don't touch it

memory: 400 Mi ---> Don't touch it

requests:

cpu: 100m -->Chnage value to 100m

memory: 200Mi -->Chnage value to 200Mi

Initconatainer:

limits:

cpu: 600m ---> Don't touch it

memory: 400 Mi ---> Don't touch

requests:

cpu: 100m -->Chnage value to 100m

memory: 200Mi -->Chnage value to 200Mi

:wq!


#kubectl scale --replicas=3 deployment wordpress -n relative-fawn



 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page