2018-07-14 08:48:22 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: csi-provisioner-sa
|
2019-05-18 09:43:12 +00:00
|
|
|
namespace: kube-system
|
2018-07-14 08:48:22 +00:00
|
|
|
---
|
|
|
|
kind: ClusterRole
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: external-provisioner-runner
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["secrets"]
|
|
|
|
verbs: ["get", "list"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumes"]
|
|
|
|
verbs: ["get", "list", "watch", "create", "delete"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumeclaims"]
|
|
|
|
verbs: ["get", "list", "watch", "update"]
|
|
|
|
- apiGroups: ["storage.k8s.io"]
|
|
|
|
resources: ["storageclasses"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["events"]
|
|
|
|
verbs: ["list", "watch", "create", "update", "patch"]
|
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: csi-provisioner-role
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: csi-provisioner-sa
|
2019-02-28 18:34:03 +00:00
|
|
|
namespace: kube-system
|
2018-07-14 08:48:22 +00:00
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
|
|
|
name: external-provisioner-runner
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
---
|
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: csi-provisioner-s3
|
2019-05-18 09:43:12 +00:00
|
|
|
namespace: kube-system
|
2018-07-14 08:48:22 +00:00
|
|
|
labels:
|
|
|
|
app: csi-provisioner-s3
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: csi-provisioner-s3
|
|
|
|
ports:
|
|
|
|
- name: dummy
|
|
|
|
port: 12345
|
|
|
|
---
|
|
|
|
kind: StatefulSet
|
2021-02-05 03:42:49 +00:00
|
|
|
apiVersion: apps/v1
|
2018-07-14 08:48:22 +00:00
|
|
|
metadata:
|
|
|
|
name: csi-provisioner-s3
|
2019-05-18 09:43:12 +00:00
|
|
|
namespace: kube-system
|
2018-07-14 08:48:22 +00:00
|
|
|
spec:
|
2021-02-05 03:42:49 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: "csi-provisioner-s3"
|
2018-07-14 08:48:22 +00:00
|
|
|
serviceName: "csi-provisioner-s3"
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: csi-provisioner-s3
|
|
|
|
spec:
|
|
|
|
serviceAccount: csi-provisioner-sa
|
|
|
|
containers:
|
|
|
|
- name: csi-provisioner
|
2019-05-14 19:53:44 +00:00
|
|
|
image: quay.io/k8scsi/csi-provisioner:v1.1.0
|
2018-07-14 08:48:22 +00:00
|
|
|
args:
|
|
|
|
- "--provisioner=ch.ctrox.csi.s3-driver"
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
|
|
|
- "--v=4"
|
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
|
|
|
value: /var/lib/kubelet/plugins/ch.ctrox.csi.s3-driver/csi.sock
|
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /var/lib/kubelet/plugins/ch.ctrox.csi.s3-driver
|
2018-07-29 12:49:35 +00:00
|
|
|
- name: csi-s3
|
2019-05-18 09:55:37 +00:00
|
|
|
image: ctrox/csi-s3:v1.1.1
|
2018-07-14 08:48:22 +00:00
|
|
|
args:
|
|
|
|
- "--endpoint=$(CSI_ENDPOINT)"
|
|
|
|
- "--nodeid=$(NODE_ID)"
|
|
|
|
- "--v=4"
|
|
|
|
env:
|
|
|
|
- name: CSI_ENDPOINT
|
|
|
|
value: unix:///var/lib/kubelet/plugins/ch.ctrox.csi.s3-driver/csi.sock
|
|
|
|
- name: NODE_ID
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
|
|
|
imagePullPolicy: "Always"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /var/lib/kubelet/plugins/ch.ctrox.csi.s3-driver
|
|
|
|
volumes:
|
|
|
|
- name: socket-dir
|
|
|
|
emptyDir: {}
|