kubectl config use-context cluster1-admin@cluster1
k get ns team-elephant
k create deployment team-elephant-ds --image viktoruj/ping_pong -o yaml --dry-run=client -n team-elephant >14.yaml
# vim 14.yaml
apiVersion: apps/v1
kind: DaemonSet # update to DaemonSet
metadata:
creationTimestamp: null
labels:
app: team-elephant-ds
team: team-elephant # add it
env: dev # add it
name: team-elephant-ds
namespace: team-elephant
spec:
# replicas: 1 # comment or delete it
selector:
matchLabels:
app: team-elephant-ds
# strategy: {} # comment or delete it
template:
metadata:
creationTimestamp: null
labels:
app: team-elephant-ds
team: team-elephant # add it
env: dev # add it
spec:
tolerations: # add it
- key: node-role.kubernetes.io/control-plane # add it
effect: "NoSchedule" # add it
containers:
- image: viktoruj/ping_pong
name: ping-pong-q5cxp
resources:
requests: # add it
cpu: 50m # add it
memory: 50Mi # add it
status: {}
k apply -f 14.yaml
k get po -n team-elephant -o wide