Skip to content

add hetzner template #106

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

rgarcia
Copy link

@rgarcia rgarcia commented May 3, 2024

Addresses #76

Basically followed the directions of @neoaggelos in that issue and got a hetzner template up and running

clusterctl generate cluster hetzner-microk8s-test --from ./templates/cluster-template-hetzner.yaml | kubectl apply -f -

About 3 minutes later

clusterctl describe cluster hetzner-microk8s-test                 
NAME                                                                       READY  SEVERITY  REASON  SINCE  MESSAGE 
Cluster/hetzner-microk8s-test                                              True                     16m             
├─ClusterInfrastructure - HetznerCluster/hetzner-microk8s-test             True                     16m             
└─ControlPlane - MicroK8sControlPlane/hetzner-microk8s-test-control-plane  True                     16m             
  └─Machine/hetzner-microk8s-test-control-plane-x8hjp                      True                     19m             

Curious if 3 minutes is typical. Tailing journalctl -f --system on the control plane node during startup and it seemed to be generating a lot of logs that I've yet to inspect.

@rgarcia
Copy link
Author

rgarcia commented May 3, 2024

only thing that stood out to me in the logs:

May 03 00:34:59 hetzner-microk8s-test-control-plane-2cttj cloud-init[692]: 2024-05-03 00:34:59,509 - schema.py[WARNING]: Invalid cloud-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors.

Running sudo cloud-init schema --system shows:

Found cloud-config data types: user-data, vendor-data, network-config

1. user-data at /var/lib/cloud/instances/46854496/cloud-config.txt:
  Invalid user-data /var/lib/cloud/instances/46854496/cloud-config.txt
  Error: Cloud config schema errors: bootcmd: [] is too short


2. vendor-data at /var/lib/cloud/instances/46854496/vendor-cloud-config.txt:
  Invalid vendor-data /var/lib/cloud/instances/46854496/vendor-cloud-config.txt
  Error: Cloud config schema errors: system_info: Additional properties are not allowed ('system_info' was unexpected)


3. network-config at /var/lib/cloud/instances/46854496/network-config.json:
  Invalid network-config /var/lib/cloud/instances/46854496/network-config.json
  Error: Cloud config schema errors: config.0.subnets.0: Additional properties are not allowed ('ipv4' was unexpected), config.0.subnets.1: Additional properties are not allowed ('ipv6' was unexpected)

Error: Invalid schema: user-data, vendor-data, network-config

Other than that I noticed two occurences of snap restart microk8s.daemon-kubelite within 15 seconds of each other which seemed odd.

@rgarcia rgarcia force-pushed the hetzner-template branch 2 times, most recently from 15f88b2 to d74705b Compare May 5, 2024 01:50
@rgarcia rgarcia force-pushed the hetzner-template branch from d74705b to 6fd78e7 Compare May 6, 2024 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant