Skip to content

Commit

Permalink
Merge pull request #623 from itspngu/backport-606
Browse files Browse the repository at this point in the history
Backport #606 to release-5.0
  • Loading branch information
k8s-ci-robot authored Dec 3, 2021
2 parents 7cf8fea + 475dcfc commit 8a1b179
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,19 @@ If your Kubernetes distribution does not bundle the snapshot controller, you may
There is a new validating webhook server which provides tightened validation on snapshot objects. The cluster admin or Kubernetes distribution admin should install the webhook alongside the snapshot controllers and CRDs. More details [below](#validating-webhook).

Install Snapshot CRDs:
* kubectl create -f client/config/crd
* kubectl kustomize client/config/crd | kubectl create -f -
* https://github.com/kubernetes-csi/external-snapshotter/tree/master/client/config/crd
* Do this once per cluster

Install Common Snapshot Controller:
* Update the namespace to an appropriate value for your environment (e.g. kube-system)
* kubectl create -f deploy/kubernetes/snapshot-controller
* https://github.com/kubernetes-csi/external-snapshotter/tree/master/deploy/kubernetes/snapshot-controller
* kubectl -n kube-system kustomize deploy/kubernetes/snapshot-controller | kubectl create -f -
* Do this once per cluster

Install CSI Driver:
* Follow instructions provided by your CSI Driver vendor.
* Here is an example to install the sample hostpath CSI driver
* kubectl create -f deploy/kubernetes/csi-snapshotter
* kubectl kustomize deploy/kubernetes/csi-snapshotter | kubectl create -f -
* https://github.com/kubernetes-csi/external-snapshotter/tree/master/deploy/kubernetes/csi-snapshotter

### Validating Webhook
Expand Down
6 changes: 6 additions & 0 deletions client/config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- snapshot.storage.k8s.io_volumesnapshotclasses.yaml
- snapshot.storage.k8s.io_volumesnapshotcontents.yaml
- snapshot.storage.k8s.io_volumesnapshots.yaml
6 changes: 6 additions & 0 deletions deploy/kubernetes/csi-snapshotter/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- rbac-csi-snapshotter.yaml
- rbac-external-provisioner.yaml
- setup-csi-snapshotter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ spec:
mountPath: /csi
volumes:
- name: socket-dir
emptyDir:
emptyDir: {}
5 changes: 5 additions & 0 deletions deploy/kubernetes/snapshot-controller/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- rbac-snapshot-controller.yaml
- setup-snapshot-controller.yaml

0 comments on commit 8a1b179

Please sign in to comment.