Mock-3 QUE-14 issue

apiVersion: apps/v1
kind: Deployment
metadata:
name: olive-app-cka10-str
spec:
replicas: 1
template:
metadata:
labels:
app: olive-app-cka10-str
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- cluster1-node01
containers:
- name: sidecar
image: busybox
command:
- sleep
- “4000”
volumeMounts:
- name: python-data
mountPath: /usr/src
readOnly: true
- name: python
image: poroko/flask-demo-app
ports:
- containerPort: 5000
volumeMounts:
- name: python-data
mountPath: /usr/share/
volumes:
- name: python-data
persistentVolumeClaim:
claimName: olive-pvc-cka10-str
selector:
matchLabels:
app: olive-app-cka10-str

pod is running fine but getting error while checking the ans at last

It’s helpful to use

code blocks because:
  1. Indentation is important for YAML
  2. It can take longer to us to re-format YAML than it takes to figure out:
      * What's wrong
      * How to fix it

Use the </> key to create the block, and paste your YAML into there.

Let’s see what your YAML actually is; then we can try and figure out why the grader program doesn’t like it.

To figure out what’s wrong with your YAML, I really do need you to post it with proper indentation, and without getting it garbled by the forum’s “text correction” software. What I can tell you is that the solution from the End Exam page works, since I just tried it. With a better idea what you actually did, it might be possible to tell you how your attempt deviated from that.