Small fixes to snapshot-controller YAML

Remove "sidecar" language for the controller.

Update image tag to 2.0.0-rc4 (the latest)

Change imagePullPolicy back to Always
This commit is contained in:
Ben Swartzlander
2019-12-30 09:39:21 -05:00
parent 81797595c8
commit 298e08e262
3 changed files with 7 additions and 7 deletions

View File

@@ -85,7 +85,7 @@ spec:
mountPath: /csi mountPath: /csi
- name: csi-snapshotter - name: csi-snapshotter
# NOTE: replace with official image when released: quay.io/k8scsi/csi-snapshotter:v2.0.0 # NOTE: replace with official image when released: quay.io/k8scsi/csi-snapshotter:v2.0.0
image: quay.io/k8scsi/csi-snapshotter:v2.0.0-rc2 image: quay.io/k8scsi/csi-snapshotter:v2.0.0-rc4
args: args:
- "--v=5" - "--v=5"
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
@@ -93,7 +93,7 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: /csi/csi.sock value: /csi/csi.sock
imagePullPolicy: IfNotPresent #Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /csi mountPath: /csi

View File

@@ -56,7 +56,7 @@ roleRef:
kind: Role kind: Role
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
namespace: default # TODO: replace with the namespace you want for your sidecar namespace: default # TODO: replace with the namespace you want for your controller
name: snapshot-controller-leaderelection name: snapshot-controller-leaderelection
rules: rules:
- apiGroups: ["coordination.k8s.io"] - apiGroups: ["coordination.k8s.io"]
@@ -68,11 +68,11 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: snapshot-controller-leaderelection name: snapshot-controller-leaderelection
namespace: default # TODO: replace with the namespace you want for your sidecar namespace: default # TODO: replace with the namespace you want for your controller
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: snapshot-controller name: snapshot-controller
namespace: default # TODO: replace with the namespace you want for your sidecar namespace: default # TODO: replace with the namespace you want for your controller
roleRef: roleRef:
kind: Role kind: Role
name: snapshot-controller-leaderelection name: snapshot-controller-leaderelection

View File

@@ -20,8 +20,8 @@ spec:
containers: containers:
- name: snapshot-controller - name: snapshot-controller
# NOTE: replace with official image when released: quay.io/k8scsi/snapshot-controller:v2.0.0 # NOTE: replace with official image when released: quay.io/k8scsi/snapshot-controller:v2.0.0
image: quay.io/k8scsi/snapshot-controller:v2.0.0-rc2 image: quay.io/k8scsi/snapshot-controller:v2.0.0-rc4
args: args:
- "--v=5" - "--v=5"
- "--leader-election=false" - "--leader-election=false"
imagePullPolicy: IfNotPresent #Always imagePullPolicy: Always