Valid CKA Dumps shared by EduDump.com for Helping Passing CKA Exam! EduDump.com now offer the newest CKA exam dumps, the EduDump.com CKA exam questions have been updated and answers have been corrected get the newest EduDump.com CKA dumps with Test Engine here:
You must connect to the correct host. Failure to do so may result in a zero score. [candidate@base] $ ssh Cka000049 Task Perform the following tasks: Create a new PriorityClass named high-priority for user-workloads with a value that is one less 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.
Correct Answer:
Task Summary * SSH into the correct node: cka000049 * Find the highest existing user-defined PriorityClass * Create a new PriorityClass high-priority with a value one less * Patch Deployment busybox-logger (in namespace priority) to use this new PriorityClass Step-by-Step Solution 1## SSH into the correct node bash CopyEdit ssh cka000049 ## Skipping this = zero score 2## Find the highest existing user-defined PriorityClass Run: bash CopyEdit kubectl get priorityclasses.scheduling.k8s.io Example output: vbnet CopyEdit NAME VALUE GLOBALDEFAULT AGE default-low 1000 false 10d mid-tier 2000 false 7d critical-pods 1000000 true 30d Exclude system-defined classes like system-* and the default global one (e.g., critical-pods). Let's assume the highest user-defined value is 2000. So your new class should be: * Value = 1999 3## Create the high-priority PriorityClass Create a file called high-priority.yaml: cat <<EOF > high-priority.yaml apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: name: high-priority value: 1999 globalDefault: false description: "High priority class for user workloads" EOF Apply it: kubectl apply -f high-priority.yaml 4## Patch the busybox-logger deployment Now patch the existing Deployment in the priority namespace: kubectl patch deployment busybox-logger -n priority \ --type='merge' \ -p '{"spec": {"template": {"spec": {"priorityClassName": "high-priority"}}}}' 5## Verify your work Confirm the patch was applied: kubectl get deployment busybox-logger -n priority -o jsonpath='{.spec.template.spec.priorityClassName}' # You should see: high-priority Also, confirm the class exists: kubectl get priorityclass high-priority Final Command Summary ssh cka000049 kubectl get priorityclass # Create the new PriorityClass cat <<EOF > high-priority.yaml apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: name: high-priority value: 1999 globalDefault: false description: "High priority class for user workloads" EOF kubectl apply -f high-priority.yaml # Patch the deployment kubectl patch deployment busybox-logger -n priority \ --type='merge' \ -p '{"spec": {"template": {"spec": {"priorityClassName": "high-priority"}}}}' # Verify kubectl get deployment busybox-logger -n priority -o jsonpath='{.spec.template.spec.priorityClassName}' kubectl get priorityclass high-priority