You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 8
Next »
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: monitorgin-daemon
spec:
selector:
matchLabels:
app: monitoring-agent
template:
metadata:
labels:
app: monitoring-agent
spec:
containers:
- name: monitoring-agent
image: monitoring-agent
sansae@sansaeAir15m2 k8s-lab-workspace % k apply -f daemonset.yaml
daemonset.apps/monitorgin-daemon created
sansae@sansaeAir15m2 k8s-lab-workspace % k get ds
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
monitorgin-daemon 1 1 0 1 0 <none> 3s