Quick Access
Set the KUBECONFIG environment variable to the generated file and run kubectl commands directly:
shell
# Access the cluster
KUBECONFIG=kubeconfig-<cluster_name>.yaml kubectl get nodes
KUBECONFIG=kubeconfig-<cluster_name>.yaml kubectl get pods -n loggingOr export it for the duration of your terminal session:
shell
export KUBECONFIG=$(pwd)/kubeconfig-<cluster_name>.yaml
kubectl get pods -n logging
kubectl get svc -n logging-ingress