docs: fix invalid input in field user_data

Talos config files greater than 32kb will create an error when trying to
create Hetzner servers. This also applies for the default configuration.

Signed-off-by: Josia Scheytt <jscheytt@googlemail.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
Josia Scheytt 2024-08-30 10:08:43 +02:00 committed by Andrey Smirnov
parent c7474877a4
commit b309e87b40
No known key found for this signature in database
GPG Key ID: FE042E3D4085A811

View File

@ -180,12 +180,15 @@ hcloud load-balancer add-target controlplane \
Using the IP/DNS name of the loadbalancer created earlier, generate the base configuration files for the Talos machines by issuing: Using the IP/DNS name of the loadbalancer created earlier, generate the base configuration files for the Talos machines by issuing:
```bash ```bash
$ talosctl gen config talos-k8s-hcloud-tutorial https://<load balancer IP or DNS>:6443 $ talosctl gen config talos-k8s-hcloud-tutorial https://<load balancer IP or DNS>:6443 \
--with-examples=false --with-docs=false
created controlplane.yaml created controlplane.yaml
created worker.yaml created worker.yaml
created talosconfig created talosconfig
``` ```
Generating the config without examples and docs is necessary because otherwise you can easily exceed the 32 kb limit on uploadable userdata (see [issue 8805](https://github.com/siderolabs/talos/issues/8805)).
At this point, you can modify the generated configs to your liking. At this point, you can modify the generated configs to your liking.
Optionally, you can specify `--config-patch` with RFC6902 jsonpatches which will be applied during the config generation. Optionally, you can specify `--config-patch` with RFC6902 jsonpatches which will be applied during the config generation.