apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: dbfsplugin.csi.alibabacloud.com
spec:
attachRequired: true
podInfoOnMount: true
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: csi-dbfs-plugin
name: csi-dbfs-plugin
namespace: kube-system
spec:
selector:
matchLabels:
app: csi-dbfs-plugin
template:
metadata:
labels:
app: csi-dbfs-plugin
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: type
operator: NotIn
values:
- virtual-kubelet
containers:
- args:
- --v=5
- --csi-address=/var/lib/kubelet/csi-plugins/dbfsplugin.csi.alibabacloud.com/csi.sock
- --kubelet-registration-path=/var/lib/kubelet/csi-plugins/dbfsplugin.csi.alibabacloud.com/csi.sock
image: registry.cn-hangzhou.aliyuncs.com/acs/csi-node-driver-registrar:v2.3.1-038aeb6-aliyun
imagePullPolicy: Always
name: dbfs-driver-registrar
volumeMounts:
- mountPath: /var/lib/kubelet
name: kubelet-dir
- mountPath: /registration
name: registration-dir
- args:
- --endpoint=$(CSI_ENDPOINT)
- --v=2
- --driver=dbfsplugin.csi.alibabacloud.com
env:
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: CSI_ENDPOINT
value: unix://var/lib/kubelet/csi-plugins/dbfsplugin.csi.alibabacloud.com/csi.sock
- name: MAX_VOLUMES_PERNODE
value: "15"
- name: SERVICE_TYPE
value: plugin
- name: SERVICE_PORT
value: "11280"
image: registry-cn-hangzhou-vpc.ack.aliyuncs.com/acs/csi-plugin:v1.24.11-5221f79-aliyun
imagePullPolicy: Always
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 5
name: csi-plugin
ports:
- containerPort: 11280
hostPort: 11280
name: healthz
protocol: TCP
securityContext:
allowPrivilegeEscalation: true
capabilities:
add:
- SYS_ADMIN
privileged: true
volumeMounts:
- mountPath: /var/lib/kubelet/
mountPropagation: Bidirectional
name: kubelet-dir
- mountPath: /host/etc
name: etc
- mountPath: /var/log/
name: host-log
- mountPath: /var/lib/container
mountPropagation: Bidirectional
name: container-dir
- mountPath: /mnt/dbfs
mountPropagation: HostToContainer
name: dbfs
- mountPath: /opt/dbfs
mountPropagation: HostToContainer
name: dbfs-config
hostNetwork: true
hostPID: true
nodeSelector:
kubernetes.io/os: linux
serviceAccount: admin
serviceAccountName: admin
tolerations:
- operator: Exists
volumes:
- hostPath:
path: /opt/dbfs
type: DirectoryOrCreate
name: dbfs-config
- hostPath:
path: /var/lib/kubelet/plugins_registry
type: DirectoryOrCreate
name: registration-dir
- hostPath:
path: /var/lib/container
type: DirectoryOrCreate
name: container-dir
- hostPath:
path: /var/lib/kubelet
type: Directory
name: kubelet-dir
- hostPath:
path: /mnt/dbfs
type: ""
name: dbfs
- hostPath:
path: /var/log/
type: ""
name: host-log
- hostPath:
path: /etc
type: ""
name: etc
updateStrategy:
rollingUpdate:
maxUnavailable: 10%
type: RollingUpdate
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: csi-dbfs-provisioner
name: csi-dbfs-provisioner
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: csi-dbfs-provisioner
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: csi-dbfs-provisioner
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
weight: 1
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: type
operator: NotIn
values:
- virtual-kubelet
containers:
- args:
- --provisioner=dbfsplugin.csi.alibabacloud.com
- --csi-address=$(ADDRESS)
- --feature-gates=Topology=True
- --volume-name-prefix=dbfs
- --strict-topology=true
- --timeout=150s
- --enable-leader-election=true
- --leader-election-type=leases
- --retry-interval-start=500ms
- --v=5
env:
- name: ADDRESS
value: /var/lib/kubelet/csi-provisioner/dbfsplugin.csi.alibabacloud.com/csi.sock
image: registry-cn-hangzhou-vpc.ack.aliyuncs.com/acs/csi-provisioner:v3.0.0-080f01e64-aliyun
imagePullPolicy: Always
name: external-dbfs-provisioner
volumeMounts:
- mountPath: /var/lib/kubelet/csi-provisioner/dbfsplugin.csi.alibabacloud.com
name: dbfs-provisioner-dir
- args:
- --v=5
- --csi-address=$(ADDRESS)
- --leader-election=true
env:
- name: ADDRESS
value: /var/lib/kubelet/csi-provisioner/dbfsplugin.csi.alibabacloud.com/csi.sock
image: registry-cn-hangzhou-vpc.ack.aliyuncs.com/acs/csi-attacher:v3.3-72dd428b-aliyun
imagePullPolicy: Always
name: external-dbfs-attacher
volumeMounts:
- mountPath: /var/lib/kubelet/csi-provisioner/dbfsplugin.csi.alibabacloud.com
name: dbfs-provisioner-dir
- args:
- --v=5
- --csi-address=$(ADDRESS)
- --leader-election
env:
- name: ADDRESS
value: /var/lib/kubelet/csi-provisioner/dbfsplugin.csi.alibabacloud.com/csi.sock
image: registry-cn-hangzhou-vpc.ack.aliyuncs.com/acs/csi-resizer:v1.3-ca84e84-aliyun
imagePullPolicy: Always
name: external-dbfs-resizer
volumeMounts:
- mountPath: /var/lib/kubelet/csi-provisioner/dbfsplugin.csi.alibabacloud.com
name: dbfs-provisioner-dir
- args:
- --endpoint=$(CSI_ENDPOINT)
- --v=2
- --driver=dbfsplugin.csi.alibabacloud.com
env:
- name: CSI_ENDPOINT
value: unix://var/lib/kubelet/csi-provisioner/dbfsplugin.csi.alibabacloud.com/csi.sock
- name: MAX_VOLUMES_PERNODE
value: "15"
- name: ACCESS_KEY_ID
- name: ACCESS_KEY_SECRET
- name: SERVICE_TYPE
value: provisioner
- name: SERVICE_PORT
value: "11290"
image: registry-cn-hangzhou-vpc.ack.aliyuncs.com/acs/csi-plugin:v1.24.11-5221f79-aliyun
imagePullPolicy: Always
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 60
successThreshold: 1
timeoutSeconds: 5
name: csi-provisioner
ports:
- containerPort: 11290
hostPort: 11290
name: healthz
protocol: TCP
resources:
limits:
cpu: "1"
memory: 1000Mi
requests:
cpu: 100m
memory: 100Mi
securityContext:
allowPrivilegeEscalation: true
capabilities:
add:
- SYS_ADMIN
privileged: true
volumeMounts:
- mountPath: /var/log/
name: host-log
- mountPath: /host/etc
name: etc
- mountPath: /var/lib/kubelet/csi-provisioner/dbfsplugin.csi.alibabacloud.com
name: dbfs-provisioner-dir
dnsPolicy: ClusterFirst
hostNetwork: true
restartPolicy: Always
serviceAccount: admin
serviceAccountName: admin
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoSchedule
key: node.cloudprovider.kubernetes.io/uninitialized
operator: Exists
volumes:
- emptyDir: {}
name: dbfs-provisioner-dir
- hostPath:
path: /var/log/
type: ""
name: host-log
- hostPath:
path: /etc
type: ""
name: etc