diff --git a/minecraft/pvc.yaml b/minecraft/pvc.yaml index 367bf05..e611f55 100644 --- a/minecraft/pvc.yaml +++ b/minecraft/pvc.yaml @@ -27,19 +27,6 @@ spec: --- apiVersion: v1 kind: PersistentVolumeClaim -metadata: - name: tfg-data - namespace: minecraft -spec: - storageClassName: longhorn - accessModes: - - ReadWriteMany - resources: - requests: - storage: 10Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim metadata: name: atm10-data namespace: minecraft diff --git a/minecraft/service.yaml b/minecraft/service.yaml index 59e5f00..15ddf61 100644 --- a/minecraft/service.yaml +++ b/minecraft/service.yaml @@ -31,21 +31,6 @@ spec: --- apiVersion: v1 kind: Service -metadata: - name: tfg-server - namespace: minecraft - labels: - app: tfg-server -spec: - type: ClusterIP - ports: - - name: tfg - port: 25565 - selector: - app: tfg-server ---- -apiVersion: v1 -kind: Service metadata: name: atm10-server namespace: minecraft diff --git a/minecraft/statefulset.yaml b/minecraft/statefulset.yaml index f25b22a..48f2af3 100644 --- a/minecraft/statefulset.yaml +++ b/minecraft/statefulset.yaml @@ -129,72 +129,6 @@ spec: --- apiVersion: apps/v1 kind: StatefulSet -metadata: - name: tfg-server - namespace: minecraft -spec: - serviceName: tfg-server - selector: - matchLabels: - app: tfg-server - template: - metadata: - labels: - app: tfg-server - spec: - nodeSelector: - nodepool: worker - containers: - - name: tfg-server - image: itzg/minecraft-server:java17 - env: - - name: EULA - value: "TRUE" - - name: MODE - value: "survival" - - name: MODPACK_PLATFORM - value: "AUTO_CURSEFORGE" - - name: CF_API_KEY - valueFrom: - secretKeyRef: - name: curseforge - key: credential - - name: CF_PAGE_URL - value: "https://www.curseforge.com/minecraft/modpacks/terrafirmagreg-modern/" - - name: CF_FILENAME_MATCHER - value: "0.10.17" - - name: VERSION - value: "1.20.1" - - name: INIT_MEMORY - value: 2G - - name: MAX_MEMORY - value: 12G - - name: ALLOW_FLIGHT - value: "TRUE" - - name: ENABLE_ROLLING_LOGS - value: "TRUE" - - name: USE_MEOWICE_FLAGS - value: "TRUE" - ports: - - name: minecraft - containerPort: 25565 - resources: - requests: - cpu: 2 - memory: "2Gi" - limits: - cpu: 6 - memory: "12Gi" - volumeMounts: - - name: tfg-data - mountPath: /data - volumes: - - name: tfg-data - persistentVolumeClaim: - claimName: tfg-data ---- -apiVersion: apps/v1 -kind: StatefulSet metadata: name: atm10-server namespace: minecraft