# This YAML file shows how to deploy the volume snapshot controller 

---
kind: StatefulSet
apiVersion: apps/v1
metadata:
  name: volume-snapshot-controller
  namespace: kube-system
  labels:
    addonmanager.kubernetes.io/mode: Reconcile
spec:
  serviceName: "volume-snapshot-controller"
  replicas: 1
  selector:
    matchLabels:
      app: volume-snapshot-controller
  template:
    metadata:
      labels:
        app: volume-snapshot-controller
    spec:
      serviceAccount: volume-snapshot-controller
      containers:
        - name: volume-snapshot-controller
          # TODO(xyang): Replace with an official image when it is released
          image: gcr.io/k8s-staging-csi/snapshot-controller:v2.0.0-rc2
          args:
            - "--v=5"
          imagePullPolicy: Always

# This YAML file shows how to deploy the volume snapshot controller 

---
kind: StatefulSet
apiVersion: apps/v1
metadata:
  name: volume-snapshot-controller
  namespace: kube-system
  labels:
    addonmanager.kubernetes.io/mode: Reconcile
spec:
  serviceName: "volume-snapshot-controller"
  replicas: 1
  selector:
    matchLabels:
      app: volume-snapshot-controller
  template:
    metadata:
      labels:
        app: volume-snapshot-controller
    spec:
      serviceAccount: volume-snapshot-controller
      containers:
        - name: volume-snapshot-controller
          image: k8s.gcr.io/sig-storage/snapshot-controller:v2.1.1
          args:
            - "--v=5"

Update snapshot controller to use k8s.gcr.io
Update snapshot controller to use k8s.gcr.io

Change-Id: I30005efec519840142bc7151aeaa543912a2f84b
