Update linode from upstream
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f599c99ee8
commit
058d9bd8e1
21 changed files with 434 additions and 458 deletions
|
|
@ -1,117 +1,115 @@
|
|||
# pkg/linode-bs/deploy/kubernetes/06-ss-csi-linode-controller.yaml
|
||||
kind: StatefulSet
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: csi-linode-controller
|
||||
namespace: kube-system
|
||||
labels:
|
||||
app: csi-linode-controller
|
||||
name: csi-linode-controller
|
||||
namespace: kube-system
|
||||
spec:
|
||||
serviceName: "csi-linode"
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-linode-controller
|
||||
serviceName: csi-linode
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-linode-controller
|
||||
role: csi-linode
|
||||
spec:
|
||||
serviceAccount: csi-controller-sa
|
||||
initContainers:
|
||||
- name: init
|
||||
image: bitnami/kubectl:1.16.3-debian-10-r36
|
||||
command:
|
||||
- /scripts/get-linode-id.sh
|
||||
env:
|
||||
- name: NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
volumeMounts:
|
||||
- name: linode-info
|
||||
mountPath: /linode-info
|
||||
- name: get-linode-id
|
||||
mountPath: /scripts
|
||||
containers:
|
||||
- name: csi-provisioner
|
||||
image: quay.io/k8scsi/csi-provisioner:v1.1.0
|
||||
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
|
||||
imagePullPolicy: "Always"
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: csi-attacher
|
||||
image: quay.io/k8scsi/csi-attacher:v1.1.0
|
||||
args:
|
||||
- "--v=2"
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
imagePullPolicy: "Always"
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: linode-csi-resizer
|
||||
image: quay.io/k8scsi/csi-resizer:v0.1.0
|
||||
args:
|
||||
- "--v=2"
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: linode-csi-plugin
|
||||
image: linode/linode-blockstorage-csi-driver:v0.2.0
|
||||
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:
|
||||
- name: NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: LINODE_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: linode
|
||||
key: token
|
||||
imagePullPolicy: "Always"
|
||||
volumeMounts:
|
||||
- name: linode-info
|
||||
mountPath: /linode-info
|
||||
- name: get-linode-id
|
||||
mountPath: /scripts
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- 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.3.0
|
||||
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:
|
||||
- name: socket-dir
|
||||
emptyDir: {}
|
||||
- name: linode-info
|
||||
emptyDir: {}
|
||||
- name: get-linode-id
|
||||
configMap:
|
||||
name: get-linode-id
|
||||
# octal mode 755
|
||||
defaultMode: 493
|
||||
- emptyDir: {}
|
||||
name: socket-dir
|
||||
- emptyDir: {}
|
||||
name: linode-info
|
||||
- configMap:
|
||||
defaultMode: 493
|
||||
name: get-linode-id
|
||||
name: get-linode-id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue