This tree is the homelab Kubernetes GitOps source of truth (saxocellphone/k8s-cluster), managed by Argo CD.
When working in this repository (cwd under k8s-cluster, or OpenCode workspace for this repo):
- Prefer explicit config:
kubectl --kubeconfig=./kubeconfigandtalosctl --talosconfig=./talosconfigfrom the repo root (seeCLAUDE.md/README.md). - Do not trust ambient
~/.kube/configor “whatever context is selected” on a laptop or shared agent host. - Before any cluster-mutating or diagnostic command that uses the default kubeconfig, confirm you are on this cluster, for example:
Cross-check against what this repo expects (homelab node names /
kubectl --kubeconfig=./kubeconfig config current-context # or: kubectl config current-context kubectl --kubeconfig=./kubeconfig cluster-info kubectl --kubeconfig=./kubeconfig get nodes*.k8s.home/ Argo atargocd.k8s.home— seeREADME.md). If the API, node set, or context clearly belongs to a different cluster, stop and switch to./kubeconfigfrom this repo (or ask the operator). Never apply or debug this GitOps tree against the wrong cluster. - If unsure, prefer read-only checks with
--kubeconfig=./kubeconfigonly, or ask.
OpenCode on the homelab cluster already uses in-cluster credentials for that cluster; the main risk is local attach / CI / multi-kubeconfig agents mixing contexts.
CLAUDE.md— full agent guidance for this repoapps/opencode/— seededAGENTS.mdfor the in-cluster OpenCode sandbox (synced from ConfigMap)