csi-driver-nvmf/deploy/kubernetes/csi-nvmf-controller.yaml
Meinhard Zhou bfea0e8ade chore: update componments to latest version.
Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
2023-02-17 11:08:06 +08:00

70 lines
1.8 KiB
YAML

kind: Deployment
apiVersion: apps/v1
metadata:
name: csi-nvmf-controller
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: csi-nvmf-controller
template:
metadata:
labels:
app: csi-nvmf-controller
spec:
serviceAccount: csi-nvmf-controller-sa
containers:
- name: csi-provisioner
image: registry.k8s.io/sig-storage/csi-provisioner:v3.3.0
imagePullPolicy: "IfNotPresent"
args:
- "--csi-address=$(ADDRESS)"
- "--v=2"
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-attacher
image: registry.k8s.io/sig-storage/csi-attacher:v4.2.0
imagePullPolicy: "IfNotPresent"
args:
- "--v=2"
- "--csi-address=$(ADDRESS)"
- "--leader-election=false"
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-nvmf-plugin
image: nvmfplugin:latest
imagePullPolicy: "IfNotPresent"
args:
- "--endpoint=$(CSI_ENDPOINT)"
- "--IsControllerServer=true"
env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: volume-map
mountPath: /var/lib/kubelet/plugins/csi.nvmf.com/volumes
mountPropagation: "HostToContainer"
volumes:
- name: socket-dir
emptyDir: {}
- name: volume-map
hostPath:
path: /var/lib/kubelet/plugins/csi.nvmf.com/volumes
type: DirectoryOrCreate