Could u please tell me where I have made mistake in above yaml file?

Sohaib Ahmed:
could u please tell me where I have made mistake in above yaml file?

TANWEER AKHTAR:
Its working fine

TANWEER AKHTAR:

apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: ~
labels:
app: redis
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
strategy: {}
template:
metadata:
creationTimestamp: ~
labels:
app: redis
spec:
containers:
-
image: “redis:alpine”
name: redis
ports:
-
containerPort: 6379
resources:
requests:
cpu: “0.2”
volumeMounts:
-
mountPath: /redis-master-data
name: data
-
mountPath: /redis-master
name: redis-config
nodeName: master
volumes:
-
emptyDir: {}
name: data
-
configMap:
name: redis-config
name: redis-config
status: {}

Sohaib Ahmed:
but for me my test gets failed

Sohaib Ahmed:
not sure why

Shwetha Shenoy V:
Does the grading show why it is marked incorrect/incomplete?

Sohaib Ahmed:
I will check.

Tawanda E Mandizha:
it is the nodeName. it is supposed to be controlplane

Tawanda E Mandizha:
that’s where you got it wrong