Merge pull request from MeinhardZhou/chore/components

Example: update componments to the latest version.
This commit is contained in:
Meinhard Zhou 2023-03-30 17:51:08 +08:00 committed by GitHub
commit 0bf764e9e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 10 deletions

View File

@ -16,7 +16,7 @@ spec:
serviceAccount: csi-nvmf-controller-sa
containers:
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.3.0
image: registry.k8s.io/sig-storage/csi-provisioner:v3.3.0
imagePullPolicy: "IfNotPresent"
args:
- "--csi-address=$(ADDRESS)"
@ -29,7 +29,7 @@ spec:
mountPath: /csi
- name: csi-attacher
image: quay.io/k8scsi/csi-attacher:v1.2.0
image: registry.k8s.io/sig-storage/csi-attacher:v4.2.0
imagePullPolicy: "IfNotPresent"
args:
- "--v=2"

View File

@ -17,13 +17,10 @@ spec:
dnsPolicy: Default
containers:
- name: node-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "rm -rf /registration/csi.nvmf.com \
/registration/csi.nvmf.com-reg.sock"]
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.6.2
env:
- name: DRIVER_REG_SOCK_PATH
value: /var/lib/kubelet/plugins/csi.nvmf.com/csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
@ -31,12 +28,26 @@ spec:
args:
- "--v=2"
- "--csi-address=/csi/csi.sock"
- "--kubelet-registration-path=/var/lib/kubelet/plugins/csi.nvmf.com/csi.sock"
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
livenessProbe:
exec:
command:
- /csi-node-driver-registrar
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --mode=kubelet-registration-probe
initialDelaySeconds: 30
timeoutSeconds: 15
volumeMounts:
- name: registration-dir
mountPath: /registration
- name: socket-dir
mountPath: /csi
resources:
limits:
memory: 100Mi
requests:
cpu: 10m
memory: 20Mi
- name: csi-nvmf-plugin
securityContext:
@ -91,4 +102,4 @@ spec:
path: /sys
- name: lib-modules
hostPath:
path: /lib/modules
path: /lib/modules