26 lines
525 B
YAML
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 |