Skip to content

openshift/snapshot-operator

Repository files navigation

Snapshot operator

Operator for the snapshot controller and provisioner: Deploys the snapshot controller and provisioner containers into a Kubernetes cluster.

Build

  1. Run dep ensure

  2. Run make: the compiled binary is placed in _output/bin/snahshot-operator

Usage

  1. Create the CRD for the SnapshotController:

    $ kubectl create -f deploy/00-crd.yaml
  2. Create the necessary RBAC objects:

    $ kubectl create -f deploy/01-rbac.yaml
  3. 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.

  4. Create the custom resource:

    $ kubectl create -f deploy/03-cr.yaml

About

Operator for the snapshot controller

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published