24 lines
484 B
YAML
24 lines
484 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: nginx-daemonset
|
|
labels:
|
|
app: &app nginx
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
name: nginx-daemonset
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: nginx-daemonset
|
|
spec:
|
|
tolerations:
|
|
- key: node-role.kubernetes.io/control-plane
|
|
effect: NoSchedule
|
|
containers:
|
|
- image: nginx:1.28.2-alpine
|
|
name: nginx-daemonset
|
|
ports:
|
|
- containerPort: 80
|