Kubernetes/File/Templates-Yaml/daemonset.yaml
offends 7a2f41e7d6
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-08-07 18:54:39 +08:00

26 lines
525 B
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: daemonset-pods
namespace: default
labels:
name: daemonset-pods
spec:
selector:
matchLabels:
name: daemonset-pods
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
name: daemonset-pods
spec:
containers:
- name: nginx
image: nginx:latest
imagePullPolicy: IfNotPresent
ports:
- name: nginx-port
containerPort: 80
protocol: TCP