siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.9k stars 556 forks source link

[Feature] [Hetzner cloud] Please accept server user-data in base64+gzip format #8805

Open conrity opened 6 months ago

conrity commented 6 months ago

Feature Request

Please accept server user-data in base64+gzip format. Hetzner allow only 32Kb user-data size, which makes impossible to deploy talos generated configs without gzipping (gzip works only with base64).

I use terraform for deploying talos and endcode data with hashicorp/cloudinit provider:

data "cloudinit_config" "cpn" {
  gzip          = true
  base64_encode = true

  # Main cloud-config configuration file.
  part {
    content_type = "text/cloud-config"
    content      = "${data.talos_machine_configuration.cpn.machine_configuration}"
  }

}

Hetzner puts decoded file here:

image

steverfrancis commented 6 months ago

You can generate your Taos configs with --with-examples=false --with-docs=false

Which should make them fit fine as is

On Sun, May 26, 2024 at 5:25 AM Artyom M. @.***> wrote:

Feature Request

Please accept server user-data in base64+gzip format. Hetzner allow only 32Kb user-data size, which makes impossible to deploy talos generated configs without gzipping (gzip works only with base64).

Hetzner puts decoded file here:

image.png (view on web) https://github.com/siderolabs/talos/assets/82505321/46144232-91bc-4ff9-b4f1-67682324c75d

— Reply to this email directly, view it on GitHub https://github.com/siderolabs/talos/issues/8805, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGWG5MIUZ7556KNQ7ZJQS3ZEHIC5AVCNFSM6AAAAABIJYFT7KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYTONRXHE4DAMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

conrity commented 6 months ago

You can generate your Taos configs with --with-examples=false --with-docs=false Which should make them fit fine as is On Sun, May 26, 2024 at 5:25 AM Artyom M. @.> wrote: Feature Request Please accept server user-data in base64+gzip format. Hetzner allow only 32Kb user-data size, which makes impossible to deploy talos generated configs without gzipping (gzip works only with base64). Hetzner puts decoded file here: image.png (view on web) https://github.com/siderolabs/talos/assets/82505321/46144232-91bc-4ff9-b4f1-67682324c75d — Reply to this email directly, view it on GitHub <#8805>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGWG5MIUZ7556KNQ7ZJQS3ZEHIC5AVCNFSM6AAAAABIJYFT7KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYTONRXHE4DAMQ . You are receiving this because you are subscribed to this thread.Message ID: @.>

Thank you, I turned off these options in terraform module and I was able to apply the configs. But still, if in the future the size of the generated configs increases a little bit, even these options will not help. We still need base64+gzip support.