Use command line tools like the Banzai CLI to manage the cluster.
Access the cluster with Banzai CLI 🔗︎
-
To download and install the Banzai CLI, run
curl https://getpipeline.sh | sh
-
Login to the cluster. Run
banzai login --endpoint=<PIPELINE_HOSTNAME>/pipeline
-
Follow the on-screen instructions: log in to Pipeline in the browser, then grant access to the CLI.
-
Log in to the cluster. This command opens a subshell on your machine and sets the environment variables so you can use the
kubectl
command to run commands in the proper cluster context.banzai cluster shell --cluster-name=<CLUSTER-NAME> --organization=<ORGANIZATION_ID>
-
Verify that the connection is working. Run a kubectl command, for example:
kubectl get nodes
- To use an access token, see the documentation.
Access the cluster without the Banzai CLI 🔗︎
-
On the Pipeline web interface, select
Cluster Management >
> Download
to download the configuration file of the cluster (KUBECONFIG). -
Set the Kubernetes context to the file saved in the previous step.
export KUBECONFIG=~/<PATH-TO-THE-DOWNLOADED-FILE>/<FILENAME>
-
Verify that the connection is working. Run a kubectl command, for example:
kubectl get nodes