v1 Command Reference
porter kubectl
Prerequisites
- You’ve logged in to the Porter CLI after running porter auth login
- You’re connected to the correct project by running porter config set-project
- You’re connected to the correct cluster by running porter config set-cluster
- You have
kubectl
installed locally. See Install kubectl.
porter kubectl
is a wrapper around the kubectl
CLI tool that automatically sets the correct kubeconfig for your configured Porter cluster, in the form:
For example, if with kubectl
you would do something like:
The above would translate to the following: