Using Playground with kubectl.
The kubectl tool is the standard CLI to interact with Kubernetes environments. The NAPPTIVE Playground offers compatibility by default with the standard Kubernetes API and thus is compatible with kubectl without any changes.
Locating your kubeconfig
The kubeconfig file contains all the information required to interact with the standard Kubernetes API. By default, after you log on the playground with the CLI with:
The kubeconfig will be already available on
~/.napptive/default/napptive-kubeconfig. If you are using custom installations with the playground CLI, your kubeconfig may be located at
If you would like to retrieve it programmatically, use the following command:
napptive-kubeconfig file will be downloaded in the the current path.
Using kubectl to interact with the platform
Once you have retrieved the kubeconfig file using any of the aforementioned options, you are ready to execute any kubectl command such as:
kubectl --kubeconfig ~/.napptive/default/napptive-kubeconfig get pods
Notice that the kubeconfig is ONLY valid for the current selected environment. To change the selected environment use:
playground env use <account_name>/<environment_name>
which will automatically update the default kubeconfig file.
- Using Personal Access Tokens to log into NAPPTIVE from a script.
- Integrate GitHub Actions in your CI/CD pipelines.