Connect to the cluster via Kube API
masterTo access your cluster, retrieve the kubeconfig via Terraform outputs.
To view the kubeconfig:
terraform output kubeconfigTo use it with kubectl:
# Set as default
export KUBECONFIG=/<path-to>/clustername_kubeconfig.yaml
# Or use directly
kubectl --kubeconfig clustername_kubeconfig.yaml get nodesIf create_kubeconfig = false was set in your configuration, generate it manually using:
terraform output --raw kubeconfig > clustername_kubeconfig.yamlterraform output kubeconfig
terraform output -json kubeconfig | jq