Installing TigerGraph Kubernetes Operator
This page describes the steps to install TigerGraph Kubernetes Operator on your Kubernetes cluster.
|The Operator only needs to be installed once for each cluster. If you run into errors saying that Custom Resource Definition (CRD) already exists, it is likely that someone else who has access to your cluster has already installed the operator. Therefore, you can safely ignore the error and skip installation.|
You have configured the
kubectlcommand-line tool for access to your running Kubernetes cluster.
Helm is installed on your local machine.
If you are pulling from a private registry, configure your cluster for access to the registry. You can do this by creating a Secret and using it as a container environment variable.
2.1. Install the TigerGraph
Run the command below to install the TigerGraph plugin for the
kubectl command-line tool:
curl https://dl.tigergraph.com/k8s/0.0.3/kubectl-tg -o kubectl-tg sudo install kubectl-tg /usr/local/bin/
The plugin is installed on your local machine. You do not need to install the plugin for each cluster you operate on.
2.2. Initialize TigerGraph Kubernetes Operator
Run the command below to initialize the TigerGraph Kubernetes Operator.
$ kubectl tg init --helm-repo http://hub.docker.com/
If you are using a private helm repository, replace
http://docker.tigergraph.com with the URL of your repository, and supply the name of your Secret:
$ kubectl tg init --helm-repo <private_repo_url> -p <secret_name>