Files
external-snapshotter/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml
Abhishek Jain fce7295eba Change snapshot controller image version to 5.0.1
Signed-off-by: Abhishek Jain <abjain39@in.ibm.com>
2022-01-27 02:51:22 -08:00

41 lines
1.3 KiB
YAML

# This YAML file shows how to deploy the snapshot controller
# The snapshot controller implements the control loop for CSI snapshot functionality.
# It should be installed as part of the base Kubernetes distribution in an appropriate
# namespace for components implementing base system functionality. For installing with
# Vanilla Kubernetes, kube-system makes sense for the namespace.
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: snapshot-controller
namespace: kube-system
spec:
replicas: 2
selector:
matchLabels:
app: snapshot-controller
# the snapshot controller won't be marked as ready if the v1 CRDs are unavailable
# in #504 the snapshot-controller will exit after around 7.5 seconds if it
# can't find the v1 CRDs so this value should be greater than that
minReadySeconds: 15
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: snapshot-controller
spec:
serviceAccount: snapshot-controller
containers:
- name: snapshot-controller
image: gcr.io/k8s-staging-sig-storage/snapshot-controller:v5.0.1
args:
- "--v=5"
- "--leader-election=true"
imagePullPolicy: IfNotPresent