Skip to content

docs: use default kubeconfig with k3s context name - #246

Merged
xnoto merged 1 commit into
mainfrom
docs/k3s-kubeconfig
Sep 13, 2026
Merged

docs: use default kubeconfig with k3s context name#246
xnoto merged 1 commit into
mainfrom
docs/k3s-kubeconfig

Conversation

@xnoto

@xnoto xnoto commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

What

Aligns kubectl onboarding with the pattern shipped in makeitworkcloud/tfroot-libvirt#28:

  • docs/kubeconfig.example.yaml: context renamed makeitworkcloud-k3sk3s; current-context dropped so the file is a safe merge fragment (cannot hijack an existing default context).
  • README.md ### kubectl access: replaces the dedicated ~/.kube/makeitworkcloud-k3s.yaml flow with a flatten-merge into the default ~/.kube/config (backup + 0600 preserved), and updates verification commands to --context k3s / --context=k3s.

Why

  • One merged context list; no KUBECONFIG exports or per-cluster files.
  • Context name is client-side only — the apiserver authenticates Dex token email/groups claims. No cluster impact.

Validation

Docs-only; no manifests, Applications, or secrets touched — Argo CD sync scope unaffected. The documented merge and verification commands were executed against a scratch kubeconfig: merge adds k3s alongside existing contexts, preserves current-context, and resolves https://api.makeitwork.cloud + makeitworkcloud-oidc. The same flow was applied to a real workstation config and verified with a live kubectl --context=k3s auth whoami (Dex OIDC, makeitworkcloud:admins group).

Local kubectl access now standardizes on the default kubeconfig
(~/.kube/config) with a context named k3s instead of a dedicated
per-cluster kubeconfig file. The example becomes a merge fragment
(current-context dropped so it cannot hijack an existing default),
and the README documents the flatten-merge flow. Companion to
makeitworkcloud/tfroot-libvirt#28.
@xnoto
xnoto requested a review from a team as a code owner September 13, 2026 03:33
@xnoto
xnoto merged commit bea0c54 into main Sep 13, 2026
2 checks passed
@xnoto
xnoto deleted the docs/k3s-kubeconfig branch September 13, 2026 03:35
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