2018-02-01 06:14:18 +00:00
|
|
|
---
|
|
|
|
kind: DaemonSet
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
metadata:
|
|
|
|
name: local-volume-provisioner
|
|
|
|
namespace: "{{ system_namespace }}"
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: local-volume-provisioner
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: provisioner
|
|
|
|
image: {{ local_volume_provisioner_image_repo }}:{{ local_volume_provisioner_image_tag }}
|
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- name: discovery-vol
|
2018-02-08 08:06:17 +00:00
|
|
|
mountPath: "{{ local_volume_mount_dir }}"
|
2018-02-01 06:14:18 +00:00
|
|
|
- name: local-volume-config
|
|
|
|
mountPath: /etc/provisioner/config/
|
|
|
|
env:
|
|
|
|
- name: MY_NODE_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
apiVersion: v1
|
|
|
|
fieldPath: spec.nodeName
|
|
|
|
- name: MY_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
apiVersion: v1
|
|
|
|
fieldPath: metadata.namespace
|
2018-02-07 16:01:19 +00:00
|
|
|
- name: VOLUME_CONFIG_NAME
|
|
|
|
value: "local-volume-config"
|
2018-02-06 16:17:10 +00:00
|
|
|
volumes:
|
|
|
|
- name: discovery-vol
|
|
|
|
hostPath:
|
|
|
|
path: "{{ local_volume_base_dir }}"
|
|
|
|
- configMap:
|
|
|
|
defaultMode: 420
|
2018-02-01 06:14:18 +00:00
|
|
|
name: local-volume-config
|
2018-02-06 16:17:10 +00:00
|
|
|
name: local-volume-config
|
|
|
|
serviceAccount: local-storage-admin
|