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:
porter kubectl -- [kubectl commands] [kubectl args]
For example, if with kubectl
you would do something like:
kubectl get pods -n prod
The above would translate to the following:
porter kubectl -- get pods -n prod