Coder Social home page Coder Social logo

Comments (11)

batistein avatar batistein commented on May 18, 2024 2

good point! I will see if we could add one. right now I'm a little bit limited in time...
Here a short description how to use talos with caph.

export HCLOUD_TOKEN=<your-token>
packer build templates/node-image/talos-image/image.json

This will build the node-image more information could be found here

Then you could create a cluster as usual but with the talos flavor. Of course you need to start the talos bootstrap and control-plane controller as well.

So right now the easiest way would be to use the tilt setup.

Adding a tilt-settings.json with the following content.

{
  "kustomize_substitutions": {
      "HCLOUD_TOKEN": "<your-token>",
      "HCLOUD_SSH_KEY": "<ssh-name-in-hcloud>",
      "HCLOUD_REGION": "fsn1",
      "CONTROL_PLANE_MACHINE_COUNT": "3",
      "WORKER_MACHINE_COUNT": "3",
      "KUBERNETES_VERSION": "v1.23.4",
      "HCLOUD_IMAGE_NAME": "talos-image",
      "HCLOUD_CONTROL_PLANE_MACHINE_TYPE": "cpx31",
      "HCLOUD_WORKER_MACHINE_TYPE": "cpx31",
      "CLUSTER_NAME": "testing"
  },
  "talos-bootstrap": "true"
}

And then:

make tilt-up

Maybe you need to install the prerequisites listet in the developer docs or alternatively make install-dev-prerequisites

In the tilt UI under http://localhost:10350/
you should see some buttons. One have a description with talos, after clicking it a workload cluster should be bootstrapped.

Feel free to enhance the docs with a PR in the meantime ;)

from cluster-api-provider-hetzner.

madnight avatar madnight commented on May 18, 2024 1

@batistein Thanks for your fast response. Talos also provides OS Images https://github.com/siderolabs/talos/releases/download/v1.2.3/metal-amd64.tar.gz wouldn't it be possible to download the OS Image in Hetzner Resuce Mode. Something like

    installImage:
      image: 
        url: https://github.com/siderolabs/talos/releases/download/v1.2.3/metal-amd64.tar.gz
#        path: >-
#          /root/.oldroot/nfs/install/../images/Ubuntu-2004-focal-64-minimal-hwe.tar.gz
      partitions:
        - fileSystem: ext4
          mount: /boot
          size: 1024M
        - fileSystem: ext4
          mount: /
          size: all

According to the Hetzner Docs https://docs.hetzner.com/robot/dedicated-server/operating-systems/installimage/ allows custom OS images.

After installation the dedicated server could just reboot and the bootstrapping of the server would be done. The rest (creating a k8s cluster) could either configured manually with talosctl or with a talosctl script that runs inside the bootstrap cluster.

from cluster-api-provider-hetzner.

Preisschild avatar Preisschild commented on May 18, 2024 1

@madnight unfortunately that's not possible. The baremetal provider integration uses heavily ssh commands. So you could only use OS Images which supports SSH and you can only use the Kubeadm Bootstrap/Control Plane Provider for Baremetal.

Would a merge request be accepted that uses the Talos API instead of SSH when using the Talos CAPI providers?

from cluster-api-provider-hetzner.

paulwollgast avatar paulwollgast commented on May 18, 2024

Thank you very much for the guideline @batistein
Currently I'm also a little short on time, I'll however try it out asap and see how I can update the docs accordingly!

from cluster-api-provider-hetzner.

madnight avatar madnight commented on May 18, 2024

@batistein

Could you also write a comment on how to setup Talos on hetzner dedicated machines? I successfully provisioned my bare-metal server HetznerBareMetalHost with the HetznerBareMetalMachineTemplate (currently Ubuntu 20.04) + bootstrap cluster template KubeadmConfigTemplate, but i would like to use Talos instead of Ubuntu + kubeadm. I guess I need something like the cluster-template-hcloud-talos-packer.yaml but for dedicated servers (cluster-template-hetzner-baremetal-talos-control-planes.yaml or so).

Thanks in advance.

from cluster-api-provider-hetzner.

batistein avatar batistein commented on May 18, 2024

@madnight unfortunately that's not possible. The baremetal provider integration uses heavily ssh commands. So you could only use OS Images which supports SSH and you can only use the Kubeadm Bootstrap/Control Plane Provider for Baremetal.

from cluster-api-provider-hetzner.

batistein avatar batistein commented on May 18, 2024

For sure! We are happy to see a PR which adds this functionality ;) It's only relevant that it doesn't break the current cabpk implementation.
If you are interested in contributing we can also find a timeslot for doing a planning, QA session.
You can find me also in the kubernetes slack workspace.

from cluster-api-provider-hetzner.

a5r0n avatar a5r0n commented on May 18, 2024

Would a merge request be accepted that uses the Talos API instead of SSH when using the Talos CAPI providers?

@Preisschild do u have any plans to work on this?

from cluster-api-provider-hetzner.

Preisschild avatar Preisschild commented on May 18, 2024

Would a merge request be accepted that uses the Talos API instead of SSH when using the Talos CAPI providers?

@Preisschild do u have any plans to work on this?

Not currently, I decided to go another route for now.

from cluster-api-provider-hetzner.

a5r0n avatar a5r0n commented on May 18, 2024

from cluster-api-provider-hetzner.

lieberlois avatar lieberlois commented on May 18, 2024

@paulwollgast Did you get this working?

from cluster-api-provider-hetzner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.