k8s-clusters/home/manifests/initialization/storage/daemonset.yaml
2022-07-17 14:47:49 -05:00

42 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: local-volume-provisioner
labels:
app: local-volume-provisioner
spec:
selector:
matchLabels:
app: local-volume-provisioner
template:
metadata:
labels:
app: local-volume-provisioner
spec:
serviceAccountName: local-storage-admin
containers:
- image: "registry.k8s.io/sig-storage/local-volume-provisioner:v2.4.0"
imagePullPolicy: "Always"
name: provisioner
securityContext:
privileged: true
env:
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- mountPath: /etc/provisioner/config
name: provisioner-config
readOnly: true
- mountPath: /var/data/local-storage
name: local-storage
mountPropagation: "HostToContainer"
volumes:
- name: provisioner-config
configMap:
name: local-provisioner-config
- name: local-storage
hostPath:
path: /var/data/local-storage