Skip to content

fix: Move galactic-cni's host kubeconfig off /etc for Talos#227

Merged
privateip merged 1 commit into
mainfrom
fix/cni-talos-etc-hostpath
Jul 10, 2026
Merged

fix: Move galactic-cni's host kubeconfig off /etc for Talos#227
privateip merged 1 commit into
mainfrom
fix/cni-talos-etc-hostpath

Conversation

@privateip

Copy link
Copy Markdown
Contributor

Summary

galactic-cni's installer DaemonSet writes a kubeconfig and CA cert to the host at /etc/galactic, so the kubelet-exec'd CNI binary (which runs outside any pod's cgroup and can't read the pod's own ServiceAccount token) has something to authenticate with. On Talos Linux, the host root filesystem is immutable — only /var is writable via hostPath without an explicit extraMounts entry in the machine config — so mkdir /etc/galactic fails immediately and the CNI DaemonSet never comes up.

This moves that state to /var/lib/galactic, which sits on Talos's writable EPHEMERAL partition (/var) with no machine-config changes required. The CNI binary path, /opt/cni/bin, is untouched — it already matches Talos's expected location and isn't affected by this bug.

Test plan

  • kubectl kustomize config/cni builds cleanly with the new path in both the initContainer and main container mounts, and the galactic-etc volume's hostPath.path
  • task lint (golangci-lint + yamlfmt) passes
  • Live deploy against a Talos cluster (not available in this environment)

…nodes

install.sh wrote its kubeconfig/CA cert to /etc/galactic via a hostPath
mount. On Talos (and other immutable-root distros), only /var is
writable without a host-level extraMounts entry, so mkdir /etc/galactic
failed outright. Move that state to /var/lib/galactic instead -- /opt/cni/bin
(the CNI binary path) is unaffected and already correct.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@privateip privateip requested a review from a team as a code owner July 10, 2026 21:38
@privateip privateip requested a review from felixwidjaja July 10, 2026 21:38
@privateip privateip merged commit 7c09e5f into main Jul 10, 2026
8 checks passed
@privateip privateip deleted the fix/cni-talos-etc-hostpath branch July 10, 2026 21:44
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.

2 participants