deployment.yaml 993 Bytes
Newer Older
Arie Peterson's avatar
Arie Peterson committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
apiVersion: apps/v1
kind: Deployment
metadata:
  name: local-provisioner
  namespace: kube-system
  labels:
    app: local-provisioner
spec:
  selector:
    matchLabels:
      app: local-provisioner
  template:
    metadata:
      name: local-provisioner
      labels:
        app: local-provisioner
    spec:
      serviceAccountName: local-provisioner
      containers:
      - name: local-provisioner
21
22
        image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
        imagePullPolicy: "{{ .Values.image.pullPolicy }}"
Arie Peterson's avatar
Arie Peterson committed
23
        volumeMounts:
Arie Peterson's avatar
Arie Peterson committed
24
        - mountPath: "{{ .Values.storageDirectory }}"
Arie Peterson's avatar
Arie Peterson committed
25
26
27
          name: storage-directory
        env:
        - name: LOCAL_STORAGE_DIR
Arie Peterson's avatar
Arie Peterson committed
28
          value: "{{ .Values.storageDirectory }}"
Arie Peterson's avatar
Arie Peterson committed
29
30
31
      volumes:
      - name: storage-directory
        hostPath:
Arie Peterson's avatar
Arie Peterson committed
32
          path: "{{ .Values.storageDirectory }}"
Arie Peterson's avatar
Arie Peterson committed
33
34
35
36
37
38
39
---
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
  name: local
provisioner: openappstack/local-provisioner
parameters: