一键导入
talos
Full lifecycle management for Talos Linux Kubernetes clusters (shared, apps). Status checks, troubleshooting, upgrades, scaling, and Terragrunt deployments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Full lifecycle management for Talos Linux Kubernetes clusters (shared, apps). Status checks, troubleshooting, upgrades, scaling, and Terragrunt deployments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Infrastructure lifecycle management. Terragrunt modules, Ansible playbooks, NixOS configs, Proxmox VMs, MikroTik networking, and TrueNAS storage.
Kubernetes workload management for homelab clusters. ArgoCD apps, deployments, pods, logs, storage, networking, and debugging.
| name | talos |
| description | Full lifecycle management for Talos Linux Kubernetes clusters (shared, apps). Status checks, troubleshooting, upgrades, scaling, and Terragrunt deployments. |
You are managing Talos Linux Kubernetes clusters in a homelab environment running on Proxmox VE.
| Cluster | VLAN | Subnet | VIP (API) | CP Nodes | Workers | Hosts |
|---|---|---|---|---|---|---|
| shared | 30 | 10.0.1.0/24 | 10.0.1.10 | 3 (400-402) | 2 (410-411) | grogu |
Worker2 in the shared cluster (VMID 411) has Intel Arc A310 GPU passthrough.
infrastructure/prod/compute/k8s-shared/configs/talosconfig-sharedinfrastructure/prod/compute/k8s-shared/configs/kubeconfig-sharedinfrastructure/prod/compute/k8s-apps/configs/talosconfig-appsinfrastructure/prod/compute/k8s-apps/configs/kubeconfig-appsinfrastructure/globals.hcl (versions, IPs, VLANs)infrastructure/modules/talos-cluster/Always specify the config file explicitly:
# talosctl - always use --talosconfig
talosctl --talosconfig infrastructure/prod/compute/k8s-shared/configs/talosconfig-shared \
--nodes <node-ip> <command>
# kubectl - always use --kubeconfig
kubectl --kubeconfig infrastructure/prod/compute/k8s-shared/configs/kubeconfig-shared \
<command>
For the apps cluster, substitute k8s-apps and the apps config files.
When the user invokes /talos, parse $ARGUMENTS to determine the action.
The first argument is the command, the second (optional) is the cluster
name (default: shared).
/talos status [cluster] — Show cluster health, node status, etcd members, and Kubernetes component status
talosctl --talosconfig <config> --nodes <vip> health
talosctl --talosconfig <config> --nodes <vip> get members
kubectl --kubeconfig <config> get nodes -o wide
kubectl --kubeconfig <config> get pods -A --field-selector=status.phase!=Running
/talos nodes [cluster] — List all nodes with versions, IPs, and roles
talosctl --talosconfig <config> --nodes <vip> get members
kubectl --kubeconfig <config> get nodes -o wide
/talos services [cluster] [node-ip] — Show Talos services on a specific node
talosctl --talosconfig <config> --nodes <node-ip> services
/talos dashboard [cluster] — Show resource usage across nodes
kubectl --kubeconfig <config> top nodes
kubectl --kubeconfig <config> top pods -A --sort-by=memory
/talos logs [cluster] [service] — Get logs from a Talos service (etcd, kubelet, containerd, etc.)
talosctl --talosconfig <config> --nodes <node-ip> logs <service>
/talos events [cluster] — Show recent Kubernetes events
kubectl --kubeconfig <config> get events -A --sort-by='.lastTimestamp' | tail -30
/talos etcd [cluster] — Check etcd health and member list
talosctl --talosconfig <config> --nodes <vip> etcd members
talosctl --talosconfig <config> --nodes <vip> etcd status
/talos disks [cluster] [node-ip] — Show disk information on a node
talosctl --talosconfig <config> --nodes <node-ip> disks
/talos dmesg [cluster] [node-ip] — Show kernel messages
talosctl --talosconfig <config> --nodes <node-ip> dmesg
/talos pods [cluster] [namespace] — List pods (optionally filtered by namespace)
kubectl --kubeconfig <config> get pods -A # or -n <namespace>
/talos deployments [cluster] — List all deployments
kubectl --kubeconfig <config> get deployments -A
/talos storage [cluster] — Show PVCs, PVs, and storage classes
kubectl --kubeconfig <config> get sc,pv,pvc -A
/talos upgrade-check [cluster] — Check current versions and available upgrades
globals.hcltalosctl --talosconfig <config> --nodes <vip> version to confirm running versions/talos upgrade [cluster] — Plan a Talos upgrade (DO NOT execute without confirmation)
Show current vs target versions
Explain the upgrade order: control plane nodes first (one at a time), then workers
Show the commands that would be run:
talosctl --talosconfig <config> --nodes <cp-ip> upgrade \
--image factory.talos.dev/installer/<schematic>:<version>
Remind to update globals.hcl with new version/schematic after upgrade
ALWAYS ask for explicit confirmation before running any upgrade command
/talos plan [cluster] — Run Terragrunt plan for the cluster
just tg-plan-module prod/compute/k8s-<cluster>
/talos apply [cluster] — Run Terragrunt apply (requires confirmation)
just tg-apply-module prod/compute/k8s-<cluster>
ALWAYS ask for explicit confirmation before applying.
/talos config [cluster] — Show the Terragrunt/Terraform configuration for a cluster
Read and summarize the relevant files:
infrastructure/prod/compute/k8s-<cluster>/terragrunt.hclinfrastructure/prod/compute/k8s-<cluster>/main.tfinfrastructure/modules/talos-cluster/variables.tf/talos machine-config [cluster] [node-ip] — Show the machine configuration for a node
talosctl --talosconfig <config> --nodes <node-ip> get machineconfig -o yaml
/talos kubeconfig [cluster] — Regenerate kubeconfig
talosctl --talosconfig <config> --nodes <vip> kubeconfig <output-path>
/talos bootstrap-status [cluster] — Check status of bootstrap components
# Cilium
kubectl --kubeconfig <config> -n kube-system get pods -l app.kubernetes.io/name=cilium
# MetalLB
kubectl --kubeconfig <config> -n metallb-system get pods
# Traefik
kubectl --kubeconfig <config> -n traefik get pods
# Democratic-CSI (NFS + iSCSI)
kubectl --kubeconfig <config> -n democratic-csi get pods
# Tailscale (if enabled)
kubectl --kubeconfig <config> -n tailscale get pods
shared clustershared, apps, or all (run against both clusters)talosctl upgrade, talosctl reset, or terragrunt apply without explicit user confirmationall clusters, run them sequentially (shared first, then apps)Read infrastructure/globals.hcl for the current talos_version,
kubernetes_version, and schematic_id before any version-related
operations.