Obtaining the Kubernetes config file for kubectl

Use the talosctl command to obtain the Kubernetes configuration file for use with kubectl. The following parameters are relevant for this procedure:
  • --talosconfig: Specifies the talosconfig.yaml file generated by the edaadm tool.
  • -m: Specifies merge the configuration with the standard ~/.kube/config file. This argument is optional.
  • -n: Specifies the VIP address of your Kubernetes cluster.
  • -e: Specifies another VIP address of the Kubernetes cluster.
For more command options, execute talosctl kubeconfig --help.
  1. Obtain the Kubernetes configuration file.
    talosctl kubeconfig \ 
     --talosconfig path/to/talosconfig.yaml \ 
     -m \ 
     -n 192.0.2.5 \ 
     -e 192.0.2.5 
  2. Inspect your server and check if all nodes are up and running.
    You can use the typical kubectl commands.
    kubectl get nodes
When all the nodes are up and Kubernetes is stable, continue with Setting up the Rook Ceph storage cluster.