snapshot-operator

module
v0.0.0-...-f7c5d8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2019 License: Apache-2.0

README

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
    

Directories

Path Synopsis
cmd
pkg
apis/snapshotoperator/v1alpha1
+k8s:deepcopy-gen=package +groupName=snapshotoperator.openshift.io
+k8s:deepcopy-gen=package +groupName=snapshotoperator.openshift.io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL