diff --git a/apps/application.yaml b/apps/application.yaml new file mode 100644 index 0000000..bbf014d --- /dev/null +++ b/apps/application.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: factorio + namespace: argocd # ArgoCD steuert diese App von hier aus +spec: + project: default + source: + repoURL: https://itzg.github.io/minecraft-charts + chart: factorio + targetRevision: 1.0.0 + helm: + valueFiles: + - values.yaml # Er wartet darauf, dass ArgoCD diese Datei hier im Ordner findet + destination: + server: https://kubernetes.default.svc + namespace: factorio # Den Namespace musst du vorher einmalig erstellen + syncPolicy: + automated: + selfHeal: true + prune: true diff --git a/apps/values.yaml b/apps/values.yaml new file mode 100644 index 0000000..63a0565 --- /dev/null +++ b/apps/values.yaml @@ -0,0 +1,27 @@ +# cluster-state/apps/factorio/values.yaml + +# Sorge dafür, dass der Pod auf dem Game-Node landet +affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: workload + operator: In + values: + - Games # Das Label, das du wahrscheinlich für server03 gesetzt hast + +# Factorio Networking +service: + type: LoadBalancer + port: 34197 + protocol: UDP + +# Persistence (Speichert deine Map auf dem Host) +persistence: + enabled: true + storageClass: "local-path" # Oder deine spezifische StorageClass + size: 5Gi + +factorio: + serverName: "UWU-Danta"