Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brightbox: kubernetes bootstrap example #22

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Apr 12, 2024

This is an example of Kubernetes cluster bootstrapping on Brightbox using Systemd sysext Ignition configuration.

⚠️ This is really for demo purposes but it can serve as a foundation (for example don't pass the admin configuration through HTTP for workers to join)

  • documentation
  • get the kubeconfig as an output
  • add outputs (IPs, etc.)
$ terraform apply
$ scp core@<IP from the output>:/home/core/.kube/config ~/.kube/config
$ kubectl get nodes
NAME                          STATUS     ROLES           AGE   VERSION
srv-cruzw.gb1.brightbox.com   NotReady   <none>          55s   v1.29.2
srv-fltor.gb1.brightbox.com   NotReady   control-plane   72s   v1.29.2
srv-gvzhx.gb1.brightbox.com   NotReady   <none>          59s   v1.29.2
srv-mipnf.gb1.brightbox.com   NotReady   <none>          60s   v1.29.2

- name: kubeadm.service
enabled: true
contents: |
[Unit]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On every boot or only on first boot?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done with condition - we should fix this in the documentation too.

@tormath1 tormath1 force-pushed the tormath1/brigthbox branch 4 times, most recently from f26e8b3 to e016687 Compare April 15, 2024 11:35
@tormath1 tormath1 changed the title [wip] brightbox: kubernetes bootstrap example brightbox: kubernetes bootstrap example Apr 15, 2024
@tormath1 tormath1 self-assigned this Apr 15, 2024
@tormath1 tormath1 marked this pull request as ready for review April 15, 2024 11:36
@tormath1 tormath1 requested a review from a team April 15, 2024 11:37
@pothos
Copy link
Member

pothos commented Apr 15, 2024

⚠️ This is really for demo purposes but it can serve as a foundation (for example don't pass the admin configuration through HTTP for workers to join)

This could be part of the README.md

@tormath1
Copy link
Contributor Author

⚠️ This is really for demo purposes but it can serve as a foundation (for example don't pass the admin configuration through HTTP for workers to join)

This could be part of the README.md

Good idea. Added the note + a link to the Flatcar documentation.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants