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…
Question
- Requests 160MB of memory for its Container
- Limits the memory to half the maximum memory constraint set for the crayfah name space.
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
Community Discussion
No community discussion yet for this question.
