Restructure project: Move AKS cluster to beispiel-k8s-cluster directory
Major improvements: - Import existing Azure AKS cluster with aztfexport - Optimize VM size from Standard_D4d_v4 to Standard_D2as_v6 (50% cost reduction) - Configure availability zones to [1, 2] - Add comprehensive monitoring setup: * New Log Analytics Workspace * OMS Agent integration * Data Collection Rule for Container Insights * Email alerts for CPU and Memory - Refactor configuration: * Extract all values to variables.tf * Rename resources with meaningful names * Add detailed outputs.tf - Add project documentation: * Comprehensive README.md * cluster-status-commands.md with useful Azure CLI commands * terraform.tfvars.example template * .gitignore for sensitive files Infrastructure changes: - Resource Group: trusted_ai_demo_rg (Germany West Central) - AKS Cluster: trai_k8s_cluster (Kubernetes 1.33) - Node Pool: 2-3 nodes with auto-scaling - Network: VNet 10.0.0.0/16, Subnet 10.0.0.0/24 - Monitoring: Full Container Insights with alerts Cost optimization: ~€75/month (down from ~€140/month) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4fd1f14a3b
commit
dfff276de6
18 files changed
+702
-420
No files matched your search
@@ -0,0 +1,36 @@
|
||||
# AKS Cluster Status Befehle
|
||||
|
||||
Hier sind die Bash-Befehle, mit denen ich den Cluster-Status geprüft habe:
|
||||
|
||||
```bash
|
||||
# 1. Cluster-Status prüfen
|
||||
az aks show --resource-group trusted_ai_demo_rg --name trai_k8s_cluster --query "{name:name, powerState:powerState.code, provisioningState:provisioningState, kubernetesVersion:kubernetesVersion, nodeResourceGroup:nodeResourceGroup}" -o table
|
||||
|
||||
# 2. Node Pool Status prüfen
|
||||
az aks nodepool list --resource-group trusted_ai_demo_rg --cluster-name trai_k8s_cluster --query "[].{name:name, count:count, vmSize:vmSize, provisioningState:provisioningState, powerState:powerState.code}" -o table
|
||||
|
||||
# 3. Kubeconfig herunterladen (für kubectl Zugriff)
|
||||
az aks get-credentials --resource-group trusted_ai_demo_rg --name trai_k8s_cluster --overwrite-existing
|
||||
|
||||
# 4. Kubernetes Nodes anzeigen
|
||||
kubectl get nodes
|
||||
|
||||
# 5. Alle Pods in allen Namespaces anzeigen
|
||||
kubectl get pods -A
|
||||
```
|
||||
|
||||
## Zusätzliche nützliche Befehle
|
||||
|
||||
```bash
|
||||
# Detaillierte Cluster-Informationen
|
||||
az aks show --resource-group trusted_ai_demo_rg --name trai_k8s_cluster -o json
|
||||
|
||||
# Cluster-Ressourcen anzeigen
|
||||
kubectl top nodes
|
||||
|
||||
# Spezifische Namespace-Pods anzeigen
|
||||
kubectl get pods -n kube-system
|
||||
|
||||
# Cluster-Events anzeigen
|
||||
kubectl get events -A --sort-by='.lastTimestamp'
|
||||
```
|
||||
Reference in new issue
Block a user