Creating a cluster via the CLI (upctl) on UpCloud.com.
upcloud-amd64.raw.xz
image available from the Image Factory.
Using the general ISO is also possible, but the UpCloud image has some UpCloud
specific features implemented, such as the fetching of metadata and user data to configure the nodes.
To create the cluster, you need a few things locally installed:
NOTE: Make sure your account allows API connections. To do so, log into UpCloud control panel and go to People -> Account -> Permissions -> Allow API connections checkbox. It is recommended to create a separate subaccount for your API access and only set the API permission.To use the UpCloud CLI, you need to create a config in
$HOME/.config/upctl.yaml
.bashrc
or .zshrc
Note: modify the zone and OS depending on your preferences. The OS should match the template name generated with packer in the previous step.Note the IP address of the first control plane node, as we will need it later.
talosctl
we will need the first control plane node’s IP, as noted earlier.
We only add one node IP, as that is the entry into our cluster against which our commands will be run.
All requests to other nodes are proxied through the endpoint, and therefore not
all nodes need to be manually added to the config.
You don’t want to run your commands against all nodes, as this can destroy your
cluster if you are not careful (further documentation).
Set the endpoints
and nodes
:
etcd
:
kubeconfig
kubeconfig
by running: