Skip to content

fix(gcp): bootstrap#458

Open
OliverTrautvetter wants to merge 4 commits into
mainfrom
fix_bootstrap
Open

fix(gcp): bootstrap#458
OliverTrautvetter wants to merge 4 commits into
mainfrom
fix_bootstrap

Conversation

@OliverTrautvetter
Copy link
Copy Markdown
Member

@OliverTrautvetter OliverTrautvetter commented May 29, 2026

Etcd Disk Management and Persistence

  • Added a new method EnsureEtcdDisksMounted to automatically format, mount, and persistently register a dedicated disk (/dev/sdb) for etcd data on each control plane node, ensuring etcd data lands on a dedicated persistent disk. This is run before k0s installation and is idempotent.
  • Updated the VM definitions for k0s-1, k0s-2, and k0s-3 to provision a 100GB disk for etcd, ensuring each control plane node has the necessary storage.
  • Integrated the etcd disk mounting step into the main bootstrap process, so that etcd storage is set up before any further installation steps.

Configuration and Idempotency Improvements

  • Changed the creation of the cloud-config ConfigMap to use kubectl --dry-run=client -o yaml | kubectl apply -f -, making the operation idempotent and preventing errors if the ConfigMap already exists.
  • Improved the script that enables the cloud provider integration for k0s systemd services by making the sed operation idempotent and only adding the flag if it's not already present. Also, added a connection timeout and made the SSH command tolerant to errors.

Minor Script Fixes

  • Corrected the way cc-deployment.yaml is written to avoid duplicate content.

@OliverTrautvetter OliverTrautvetter requested a review from joka134 May 29, 2026 11:10
@OliverTrautvetter OliverTrautvetter marked this pull request as ready for review May 29, 2026 11:10
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