Question 72 of 179 from exam ACE: Associate Cloud Engineer

Question 72 of 179 from exam ACE: Associate Cloud Engineer

Question

You deployed a new application inside your Google Kubernetes Engine cluster using the YAML file specified below.

apiversion:
ind: Deployment
metadata:
myapp-deployment

name:
spec:
selector:
matchLabels:
app: myapp
replicas: 2
template:
metadata:
labels:
ap)
spec:

myapp

containers:

myapp
image: myapp:1.1
ports:

- containerPort:

- name:

80

apiversion: vi
kind: Service

metadata:
name: myapp-service
spec:
ports:
= port: 8000
targetPort: 80
protocol: TCP
selector:

app: myapp

You check the status of the deployed pods and notice that one of them is still in PENDING status:

kubect1 get pods -1 app=myapp
NAME READY STATUS RESTART AGE

myapp-deployment-S8ddbbb995-1p8ém ost Pending 0 9m
myapp-deployment-S8ddbbb995-qjpkg wa Running 0 9m

You want to find out why the pod is stuck in pending status.

What should you do?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.

https://cloud.google.com/run/docs/gke/troubleshooting