23 lines
425 B
YAML
23 lines
425 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:
|
|
nodeSelector:
|
|
role: nginx
|
|
containers:
|
|
- image: nginx:1.28.2-alpine
|
|
name: nginx-daemonset
|
|
ports:
|
|
- containerPort: 80
|