forked from openshift/cloud-provider-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcsi-controllerplugin.yaml
More file actions
127 lines (127 loc) · 4.51 KB
/
Copy pathcsi-controllerplugin.yaml
File metadata and controls
127 lines (127 loc) · 4.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
kind: Service
apiVersion: v1
metadata:
name: openstack-manila-csi-controllerplugin
labels:
app: openstack-manila-csi
component: controllerplugin
spec:
selector:
app: openstack-manila-csi
component: controllerplugin
ports:
- name: dummy
port: 12345
---
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: openstack-manila-csi-controllerplugin
labels:
app: openstack-manila-csi
component: controllerplugin
spec:
serviceName: openstack-manila-csi-controllerplugin
replicas: 1
selector:
matchLabels:
app: openstack-manila-csi
component: controllerplugin
template:
metadata:
labels:
app: openstack-manila-csi
component: controllerplugin
spec:
serviceAccountName: openstack-manila-csi-controllerplugin
containers:
- name: provisioner
image: "registry.k8s.io/sig-storage/csi-provisioner:v5.3.0"
args:
- "--csi-address=$(ADDRESS)"
- "--extra-create-metadata"
# To enable topology awareness in csi-provisioner, uncomment the following line:
# - "--feature-gates=Topology=true"
env:
- name: ADDRESS
value: "unix:///var/lib/kubelet/plugins/manila.csi.openstack.org/csi-controllerplugin.sock"
imagePullPolicy: IfNotPresent
volumeMounts:
- name: plugin-dir
mountPath: /var/lib/kubelet/plugins/manila.csi.openstack.org
- name: snapshotter
image: "registry.k8s.io/sig-storage/csi-snapshotter:v8.3.0"
args:
- "--csi-address=$(ADDRESS)"
env:
- name: ADDRESS
value: "unix:///var/lib/kubelet/plugins/manila.csi.openstack.org/csi-controllerplugin.sock"
imagePullPolicy: IfNotPresent
volumeMounts:
- name: plugin-dir
mountPath: /var/lib/kubelet/plugins/manila.csi.openstack.org
- name: resizer
image: "registry.k8s.io/sig-storage/csi-resizer:v1.14.0"
args:
- "--csi-address=$(ADDRESS)"
- "--handle-volume-inuse-error=false"
env:
- name: ADDRESS
value: "unix:///var/lib/kubelet/plugins/manila.csi.openstack.org/csi-controllerplugin.sock"
imagePullPolicy: IfNotPresent
volumeMounts:
- name: plugin-dir
mountPath: /var/lib/kubelet/plugins/manila.csi.openstack.org
- name: nodeplugin
securityContext:
privileged: true
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: registry.k8s.io/provider-os/manila-csi-plugin:v1.33.0
command: ["/bin/sh", "-c",
'/bin/manila-csi-plugin
--endpoint=$(CSI_ENDPOINT)
--drivername=$(DRIVER_NAME)
--share-protocol-selector=$(MANILA_SHARE_PROTO)
--fwdendpoint=$(FWD_CSI_ENDPOINT)
--pvc-annotations'
# To enable topology awareness and retrieve compute node AZs from the OpenStack Metadata Service, add the following flag:
# --with-topology
# This flag needs to be added to csi-nodeplugin.yaml as well.
]
env:
- name: DRIVER_NAME
value: manila.csi.openstack.org
- name: NODE_ID
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: CSI_ENDPOINT
value: "unix:///var/lib/kubelet/plugins/manila.csi.openstack.org/csi-controllerplugin.sock"
- name: FWD_CSI_ENDPOINT
value: "unix:///var/lib/kubelet/plugins/FWD-NODEPLUGIN/csi.sock"
- name: MANILA_SHARE_PROTO
value: "SHARE-PROTOCOL"
imagePullPolicy: IfNotPresent
volumeMounts:
- name: plugin-dir
mountPath: /var/lib/kubelet/plugins/manila.csi.openstack.org
- name: fwd-plugin-dir
mountPath: /var/lib/kubelet/plugins/FWD-NODEPLUGIN
- name: pod-mounts
mountPath: /var/lib/kubelet/pods
mountPropagation: Bidirectional
volumes:
- name: plugin-dir
hostPath:
path: /var/lib/kubelet/plugins/manila.csi.openstack.org
type: DirectoryOrCreate
- name: fwd-plugin-dir
hostPath:
path: /var/lib/kubelet/plugins/FWD-NODEPLUGIN
type: Directory
- name: pod-mounts
hostPath:
path: /var/lib/kubelet/pods
type: Directory