Creating a cluster via the AWS CLI.
terraform
or opentofu
please see the example in the contrib repository.
Note: this guide is not a production set up and steps were tested inbash
andzsh
shells.
Make sure your subnet does not overlap with10.244.0.0/16
or10.96.0.0/12
the default pod and services subnets in Kubernetes.
Note: If you’re using zsh you need to run setopt KSH_ARRAYS
to have arrays referenced properly.
cloud-images.json
file attached to the Talos release.
If using the official AMIs, you can skip to Creating the Security group
The use of the official Talos AMIs are recommended, but if you wish to build your own AMIs, follow the procedure below.
vmimport
Rolevmimport
role exists as described in the official AWS documentation.
Note that the role should be associated with the S3 bucket we created above.
SnapshotTaskDetail.Status
indicates completed
, we can register the image.
Note: This is only required for the control plane nodes. For a production environment you would want separate private subnets for worker nodes.
Note that the generated configs are too long for AWS userdata field if the--with-examples
and--with-docs
flags are not passed.
Note: There is a known issue that prevents Talos from running on T2 instance types. Please use T3 if you need burstable instance types.
worker.yaml
machine configuration and create an autoscaling group.
talosconfig
filetalosconfig
file so commands sent to Talos will be authenticated.
etcd
endpoints
(the control plane node to which talosctl
commands are sent) and nodes
(the nodes that the command operates on):
etcd
:
kubeconfig
kubeconfig
by running:
kubectl
commands.