Obtaining the Kubernetes config file for kubectl
Use the edaadm command to obtain the Kubernetes configuration file for use with kubectl. The following parameter is relevant for this procedure:
-c
: Specifies your EDAADM configuration file.
-
Obtain the Kubernetes configuration file.
Execute the following command in the folder where the eda-input-6-node.yaml is stored, as well as where the folder with the Talos configuration files was executed:
edaadm get-kubeconfig -c eda-6-node-deployment.yaml
The command creates a kubeconfig file in the folder with the name of your cluster according to the EDAADM config file. -
You can configure your environment to use the kubeconfig
file for use with the kubectl command.
export KUBECONFIG=eda-compute-cluster/kubeconfig
-
Inspect your server and check if all nodes are up and running.
You can use the typical
kubectl
commands.kubectl get nodes