The grader is failing Question 9 for me.
It says that neither the pod nor the service “pod21-ckad-svcn” are created.
They should be in the ‘default’ namespace on cluster 3.
Here is the YAML for my service and pod. I’m not sure why they are considered incorrect.
apiVersion: v1
kind: Service
metadata:
creationTimestamp: "2024-12-13T17:45:18Z"
name: pod21-ckad-svcn
namespace: default
resourceVersion: "8309"
uid: 908f2749-0257-4a89-9985-7b08539afc94
spec:
clusterIP: 10.97.199.39
clusterIPs:
- 10.97.199.39
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
run: pod21-ckad-svcn
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
and
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2024-12-13T17:45:18Z"
labels:
run: pod21-ckad-svcn
name: pod21-ckad-svcn
namespace: default
resourceVersion: "8318"
uid: 1103a436-f25f-4491-a635-af0abe892188
spec:
containers:
- image: nginx:alpine
imagePullPolicy: IfNotPresent
name: pod21-ckad-svcn
ports:
- containerPort: 80
protocol: TCP
resources: {}