Welcome to the Linux Foundation Forum!

lab 7.1 kubectl create -f ds.yaml

Hello..
kubectl create -f ds.yaml --- this command was applied

student@cp:~$ kubectl create -f ds.yaml
daemonset.apps/ds-one created

but I dont see 2 pods ... could you give me one advice?
student@cp:~$ kubectl get ds
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
ds-one 0 0 0 0 0 5s

here my ds.yaml file:

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ds-one
spec:
selector:
matchLabels:
system: DaemonSetOne
template:
metadata:
labels:
system: DaemonSetOne
spec:
containers:
- name: nginx
image: nginx:1.15.1
ports:
- containerPort: 80

Comments

  • chrispokorni
    chrispokorni Posts: 2,153

    Hi @eporart,

    Without code tags it is impossible to determine if anything is out of place in the ds.yaml definition file.

    What method did you use to create the file? There is a working definition file in the SOLUTIONS tarball, which you may use to compare and possibly make corrections if needed.

    What is the output of kubectl get nodes -o wide command?

    Regards,
    -Chris

Categories

Upcoming Training