...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: local-path-provisioner
5 namespace: local-storage-provider
6spec:
7 replicas: 1
8 selector:
9 matchLabels:
10 app: local-path-provisioner
11 template:
12 metadata:
13 labels:
14 app: local-path-provisioner
15 annotations:
16 rancher/local.storage.provisioner: "reprovision"
17 spec:
18 serviceAccountName: local-path-provisioner-service-account
19 priorityClassName: edge-p1-critical-infra # TODO(bc185174): reduce to edge-p3-workload-services when linkerdctl does not depend on it
20 containers:
21 - name: local-path-provisioner
22 image: bzl://third_party/k8s/rancher-local-storage:container_push
23 command:
24 - local-path-provisioner
25 - --debug
26 - start
27 - --config
28 - /etc/config/config.json
29 env:
30 - name: POD_NAMESPACE
31 valueFrom:
32 fieldRef:
33 fieldPath: metadata.namespace
34 volumeMounts:
35 - name: config-volume
36 mountPath: /etc/config/
37 imagePullPolicy: IfNotPresent
38 volumes:
39 - name: config-volume
40 configMap:
41 name: local-path-config
View as plain text