Kubernetes/File/Templates-Yaml/daemonset.yaml

26 lines
525 B
YAML
Raw Normal View History

2024-08-07 10:54:39 +00:00
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