Hello , I am having issues with lightning 1 - Q 6 The pod is running on the co . . .

John:
Hello ,

I am having issues with lightning 1 - Q 6

The pod is running on the control plane without error so I cannot see what the questions is failing – Can anyone see from my yaml what I have missed?

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: redis
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
strategy: {}
template:
metadata:
labels:
app: redis
spec:
nodeName: controlplane
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
volumes:
- name: data
emptyDir: {}
- name: redis-config
configMap:
name: redis-config

Thanks

John.

Mayur Sharma:
I have got this question wrong many times. let me try here …

Can you please confirm the namespace it is deployed.

Mayur Sharma:
** have ignroed the identation check, as you say it is running. but the yaml you copied here wrong identation on volumes-configMap

John:
@Mayur Sharma is it running in the default namespace
image.png

John:
@Mayur Sharma You were correct on the indentation: this works

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: redis
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
strategy: {}
template:
metadata:
labels:
app: redis
spec:
nodeName: controlplane
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
volumes:
- name: data
emptyDir: {}
- name: redis-config
configMap:
name: redis-config

John:
not sure why it runs as a deploy but fails the question with the indentation issue-- thanks!!

Mayur Sharma:
@John: ohh, but how it got created, if identation was not correct

John:
@Mayur Sharma no idea — it is the same in my own lab --both yaml files create without issue

Mayur Sharma:
we need to be very cautious of such irregularities. Anyways, all good if end is good :slightly_smiling_face: