Info |
---|
|
Code Block | ||
---|---|---|
| ||
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 |
Code Block | ||
---|---|---|
| ||
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 |