Comments (11)
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.
@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.
@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.
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.
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.
@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.
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.
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.
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.
from cluster-api-provider-hetzner.
@paulwollgast Did you get this working?
from cluster-api-provider-hetzner.
Related Issues (20)
- git based management with flux not possible HOT 5
- Test CAPH with changing API token
- switch to python3
- Remove server from load balancer after node is drained
- Add control planes as targets to load balancer only when they are reachable
- Test new logic of addition/removal of servers in the load balancer
- Custom resource definitions for CAPH HOT 3
- Customize LoadBalancer Name HOT 3
- :bug: bare-metal server get re-provisioning on expected drive new caph release. Can lead to data loss! HOT 1
- Add webhooks for ProviderMachineTemplate objects
- Validate HBMH before using it
- Update information of Hetzner secret in workload / target cluster
- Choose HetznerBareMetalHosts with RootDeviceHints set over those ones without
- Condition for missing `rootDeviceHints` of `HetznerBareMetalHost`
- Update the quickstart guide
- Updating the `managingsshkey.md` doc HOT 3
- Updating the `node-images.md` doc HOT 3
- Creating the `rate-limits` doc HOT 1
- Dependency Dashboard 🤖
- Link Checker Dashboard HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cluster-api-provider-hetzner.