kubectl-nkp
is a CLI tool to connect easily to NKP workload clusters.
- List and select NKP workload clusters using fuzzy finder.
- Connect to selected cluster and launch a temporary shell with the corresponding kubeconfig.
Your management cluster kubeconfig need to be put in the following path: ~/.kube/nkp/config
.
To use kubectl-nkp
, run the following command:
kubectl nkp connect
This will list the available NKP workload clusters and allow you to select one using a fuzzy finder. Once selected, it will launch a shell with the kubeconfig for the selected cluster. If there is only one cluster available, it will connect to that cluster directly.
- Go 1.24.1 or later
- Kubernetes cluster with Cluster API installed
To build the project, run:
task build
To install the project, use:
task install
To run linting, use:
task lint
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.