Creating Talos Kubernetes cluster using VirtualBox VMs.
talosctl
on MacOS and Linux via:
linux
platform:
Note: Make sure type is set as Linux / Other Linux (64-bit)
.
Edit the memory to supply at least 2GB of RAM for the VM:
$CONTROL_PLANE_IP
for the rest of this guide.
If you wish to export this IP as a bash variable, simply issue a command like export CONTROL_PLANE_IP=1.2.3.4
.
_out
directory: controlplane.yaml, worker.yaml, and talosconfig.
controlplane.yaml
generated above, you can now apply this config using talosctl.
Issue:
Note: This process can be repeated multiple times to create an HA control plane.
Note: If you encounter the following error in the console:
Talos is already installed to disk but booted from another media and talos.halt_if_installed kernel parameter set. Please reboot from another disk.
Simply remove the ISO image from the VM and restart it.
$WORKER_IP
.
If you wish to export this IP as a bash variable, simply issue a command like export WORKER_IP=1.2.3.4
.
Issue:
Note: This process can be repeated multiple times to add additional workers.
etcd
etcd
has to be bootstrapped.
The cluster will be in stage Booting
and healthy
state until this is stage is completed.
Set the endpoints
and nodes
:
etcd
by running the following command.
You should see stage change to Running
and your cluster is now ready.
talosctl
and kubectl
to interact with the cluster.
For example, to view current running containers, run talosctl containers
for a list of containers in the system
namespace, or talosctl containers -k
for the k8s.io
namespace.
To view the logs of a container, use talosctl logs <container>
or talosctl logs -k <container>
.
First, configure talosctl to talk to your control plane node by issuing the following, updating paths and IPs as necessary:
kubeconfig
kubeconfig
by running:
export KUBECONFIG=$(pwd)/kubeconfig
.
You can then use kubectl in this fashion: