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.