top of page
Search

CKA EXAM QS -9 2025

Question 9:

Create a new PriorityClass named high-priority for user-workloads with a volume that is one less class than the highest existing user-defined priority class value.


Patch the existing Deployment busybox-logger running in the priority namespace to use the high-priority priority class.


Ensure that the busybox-logger deployment rolls out successfully with the new priority class set.


It is expected that Pods from other Deployments running in the priority namespace are evicted.

Do not modify other Deployments running in the priority namespace.


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


#kubectl get prioritycalss # to know existing pririty class

How to build priorityclass manifiest:


1- Open https://kubernetes.io/docs/home/ and search priority class

and copy the Example PriorityClass sample as below:


vim priority.yaml

kind: PriorityClass

metadata:

name: high-priority

value: 999999999 #put 9 times 9 only

globalDefault: false

description: "This priority class should be used for XYZ service pods only."

:wq!


#kubectl create -f priority.yaml -n priority

#kubectl get prioritycalss

#kubectl edit deployment busybox-logger -n priority

spec:

priorityClassName: high-priority

containers:

- name: nginx

image: nginx

:wq!


Note: Highpriority pod will deply from pending state and lower pririty pods will may changed to pending state.


# kubectl get pod -n priority



 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page