Exercise 7.4: Working with DaemonSets
cat <<EOF | kubectl create -f - apiVersion: apps/v1 kind: DaemonSet metadata: name: ds-one labels: system: DaemonSetOne spec: selector: matchLabels: system: DaemonSetOne template: metadata: labels: system: DaemonSetOne spec: containers: - name: nginx image: nginx:1.15.1 ports: - containerPort: 80 EOFkubectl get ds,pod -l system=DaemonSetOne -o widekubectl get pod -l system=DaemonSetOne \ -o=custom-columns=NAME:.metadata.name,IMAGE:.spec.containers[*].image
Last updated