Cluster Management - KuiprLab/dev-environment GitHub Wiki


tags:

  • homelab/kube

Cluster Management

Triggering Reconciliation

To manually trigger a sync between your Git repository and the cluster:

# Reconcile specific resources
flux reconcile kustomization infrastructure --with-source

# Reconcile the entire system
flux reconcile kustomization flux-system --with-source

Comparing Deployments

Compare the desired state in Git with the actual state in the cluster:

# Compare cluster configuration
flux diff kustomization flux-system --path clusters/talos-dev-hla1

# Compare infrastructure configurations
flux diff kustomization infrastructure --path infra/dev

# Compare application deployments
flux diff kustomization deployments --path deploy/dev

Viewing Resources

List resources managed by FluxCD:

# List all kustomizations
flux get kustomizations

# List all Helm releases across all namespaces
flux get helmreleases -A

Viewing Logs

The dev environment comes with a klogs command, which lets you view the logs of a specific container that you can select from a list

Talos Dashboard

The environment also contains a command for viewing the dashboards of all nodes. Simply run talos_dashboard. Alternatively use the Talos built in command talos dashboard -n <node> to see the dashboard of a specific node. The dashboard shows more or less the same information that the display in Proxmox does.

⚠️ **GitHub.com Fallback** ⚠️