115 lines
3.2 KiB
YAML
115 lines
3.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
labels:
|
|
app: csi-linode-controller
|
|
name: csi-linode-controller
|
|
namespace: kube-system
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: csi-linode-controller
|
|
serviceName: csi-linode
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: csi-linode-controller
|
|
role: csi-linode
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- --volume-name-prefix=pvc
|
|
- --volume-name-uuid-length=16
|
|
- --csi-address=$(ADDRESS)
|
|
- --v=2
|
|
env:
|
|
- name: ADDRESS
|
|
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
|
image: quay.io/k8scsi/csi-provisioner:v1.6.0
|
|
imagePullPolicy: Always
|
|
name: csi-provisioner
|
|
volumeMounts:
|
|
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
|
name: socket-dir
|
|
- args:
|
|
- --v=2
|
|
- --csi-address=$(ADDRESS)
|
|
env:
|
|
- name: ADDRESS
|
|
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
|
image: quay.io/k8scsi/csi-attacher:v2.2.0
|
|
imagePullPolicy: Always
|
|
name: csi-attacher
|
|
volumeMounts:
|
|
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
|
name: socket-dir
|
|
- args:
|
|
- --v=2
|
|
- --csi-address=$(ADDRESS)
|
|
env:
|
|
- name: ADDRESS
|
|
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
|
image: quay.io/k8scsi/csi-resizer:v0.5.0
|
|
name: linode-csi-resizer
|
|
volumeMounts:
|
|
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
|
name: socket-dir
|
|
- args:
|
|
- --endpoint=$(CSI_ENDPOINT)
|
|
- --token=$(LINODE_TOKEN)
|
|
- --url=$(LINODE_API_URL)
|
|
- --node=$(NODE_NAME)
|
|
- --bs-prefix=$(LINODE_BS_PREFIX)
|
|
- --v=2
|
|
env:
|
|
- name: CSI_ENDPOINT
|
|
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
|
|
- name: LINODE_API_URL
|
|
value: https://api.linode.com/v4
|
|
- name: LINODE_BS_PREFIX
|
|
value: null
|
|
- name: NODE_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
- name: LINODE_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: token
|
|
name: linode
|
|
image: linode/linode-blockstorage-csi-driver:v0.4.1
|
|
imagePullPolicy: Always
|
|
name: linode-csi-plugin
|
|
volumeMounts:
|
|
- mountPath: /linode-info
|
|
name: linode-info
|
|
- mountPath: /scripts
|
|
name: get-linode-id
|
|
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
|
name: socket-dir
|
|
initContainers:
|
|
- command:
|
|
- /scripts/get-linode-id.sh
|
|
env:
|
|
- name: NODE_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
image: bitnami/kubectl:1.16.3-debian-10-r36
|
|
name: init
|
|
volumeMounts:
|
|
- mountPath: /linode-info
|
|
name: linode-info
|
|
- mountPath: /scripts
|
|
name: get-linode-id
|
|
serviceAccount: csi-controller-sa
|
|
volumes:
|
|
- emptyDir: {}
|
|
name: socket-dir
|
|
- emptyDir: {}
|
|
name: linode-info
|
|
- configMap:
|
|
defaultMode: 493
|
|
name: get-linode-id
|
|
name: get-linode-id
|