nerdexam
Linux_Foundation

CKAD · Question #26

The pod for the Deployment named nosql in the craytisn namespace fails to start because its container runs out of resources. Update the nosql Deployment so that the Pod: 1) Requests 160MB of memory…

candidate@node-1 ~$ kubectl config use-context k8s Switched to context "k8s". candidate@node-1 ~$ vim ~/chief-cardinal/nosql.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: nosql app.kubernetes.io/name: nosql app.kubernetes.io/component: Backend name: nosql…

Submitted by kim_seoul· May 4, 2026Application Deployment

Question

The pod for the Deployment named nosql in the craytisn namespace fails to start because its container runs out of resources. Update the nosql Deployment so that the Pod:
  1. Requests 160MB of memory for its Container
  2. Limits the memory to half the maximum memory constraint set for the crayfah name space.

Exhibit

CKAD question #26 exhibit

Explanation

candidate@node-1 ~$ kubectl config use-context k8s Switched to context "k8s". candidate@node-1 ~$ vim ~/chief-cardinal/nosql.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: nosql app.kubernetes.io/name: nosql app.kubernetes.io/component: Backend name: nosql spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: nosql app.kubernetes.io/component: Backend template: metadata: labels: app: nosql app.kubernetes.io/name: nosql app.kubernetes.io/component: Backend spec: containers: - image: mongo:4.2 name: mongo args: - --bind_ip - 0.0.0.0 ports: - containerPort: 27017 INSERT --

Topics

#Resource Requests and Limits#Deployments#Container Memory#Pod Troubleshooting

Community Discussion

No community discussion yet for this question.

Full CKAD Practice