Deploy Operator
Deploy Operator¶
Hbase operator is written to understand hbase tenant and hbase cluster Custom Resource Definitions of kubernetes.
Build Docker image for Hbase Operator¶
navigate to /operator
under parent directory of this repository
-
You can build operator using following command
ormake docker-build IMG=hbase-operator:v1.0.0
docker build -f Dockerfile -t hbase-operator:v1.0.0 .
-
Push docker image to remote registry
docker push hbase-operator:v1.0.0
or to run in minikube
docker save hbase-operator:v1.0.0 | pv | (eval $(minikube docker-env) && docker load)
Deploy Operator¶
Via Makefile¶
navigate to /operator
under parent directory of this repository
-
Deploy operator image in your kubernetes. Use
-n
optionally to specify namespacemake deploy IMG=hbase-operator:v1.0.0 -n hbase-operator-ns
-
UnDeploy operator. Use
-n
optionally to specify namespacemake undeploy IMG=hbase-operator:v1.0.0 -n hbase-operator-ns
-
Hbase operator is verbose enough on any operations performed. You can check container logs using
kubectl
or other mechanism. Examplekubectl logs hbase-operator-controller-manager-76b4455b76-t4bbb -c manager -f -n hbase-operator-ns
Via Helm Chart¶
-
Modify namespaces to watch for under
examples/operator-chart/values.yaml
. This ensures only those namespaces are watched on which objects to be created -
Base Helm Chart: You can find base helm chart which packages all the necessary manifests into single package. Navigate to
helm-charts/operator-chart
from root directory of this repository. You can build the package using following commandhelm package helm-charts/operator-chart/
-
Deploy Helm Chart:: You can find example helm chart to deploy operator under
examples/operator-chart
helm upgrade --install --debug example examples/operator-chart/ -n hbase-operator-ns
-
Hbase operator is verbose enough on any operations performed. You can check container logs using
kubectl
or other mechanism. Examplekubectl logs hbase-operator-controller-manager-76b4455b76-t4bbb -c manager -f -n hbase-operator-ns