Operator for the snapshot controller and provisioner: Deploys the snapshot controller and provisioner containers into a Kubernetes cluster.
-
Run
dep ensure
-
Run
make
: the compiled binary is placed in_output/bin/snahshot-operator
-
Create the CRD for the SnapshotController:
$ kubectl create -f deploy/00-crd.yaml
-
Create the necessary RBAC objects:
$ kubectl create -f deploy/01-rbac.yaml
-
Start the operator (outside of the cluster):
$ KUBERNETES_CONFIG=/var/run/kubernetes/admin.kubeconfig OPERATOR_NAME="snapshot-operator" WATCH_NAMESPACE="default" _output/bin/snapshot-operator
Make sure to use the correct value for the
KUBERNETES_CONFIG
environment variable. -
Create the custom resource:
$ kubectl create -f deploy/03-cr.yaml