diff --git a/minecraft/pvc.yaml b/minecraft/pvc.yaml index e2087d9..d5c644b 100644 --- a/minecraft/pvc.yaml +++ b/minecraft/pvc.yaml @@ -1,19 +1,6 @@ --- apiVersion: v1 kind: PersistentVolumeClaim -metadata: - name: monifactory-data - namespace: minecraft -spec: - storageClassName: longhorn - accessModes: - - ReadWriteMany - resources: - requests: - storage: 10Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim metadata: name: atm10-data namespace: minecraft @@ -27,19 +14,3 @@ spec: resources: requests: storage: 10Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: star-technology-data - namespace: minecraft - labels: - recurring-job.longhorn.io/source: "enabled" - recurring-job.longhorn.io/daily-backup: "enabled" -spec: - storageClassName: longhorn - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi diff --git a/minecraft/service.yaml b/minecraft/service.yaml index c70283c..d2623f2 100644 --- a/minecraft/service.yaml +++ b/minecraft/service.yaml @@ -1,21 +1,6 @@ --- apiVersion: v1 kind: Service -metadata: - name: monifactory-server - namespace: minecraft - labels: - app: monifactory-server -spec: - type: ClusterIP - ports: - - name: monifactory - port: 25565 - selector: - app: monifactory-server ---- -apiVersion: v1 -kind: Service metadata: name: atm10-server namespace: minecraft @@ -28,18 +13,3 @@ spec: port: 25565 selector: app: atm10-server ---- -apiVersion: v1 -kind: Service -metadata: - name: star-technology-server - namespace: minecraft - labels: - app: star-technology-server -spec: - type: ClusterIP - ports: - - name: star-technology - port: 25565 - selector: - app: star-technology-server diff --git a/minecraft/statefulset.yaml b/minecraft/statefulset.yaml index 65b699a..1941dcc 100644 --- a/minecraft/statefulset.yaml +++ b/minecraft/statefulset.yaml @@ -1,72 +1,6 @@ --- apiVersion: apps/v1 kind: StatefulSet -metadata: - name: monifactory-server - namespace: minecraft -spec: - serviceName: monifactory-server - selector: - matchLabels: - app: monifactory-server - template: - metadata: - labels: - app: monifactory-server - spec: - nodeSelector: - nodepool: worker - containers: - - name: monifactory-server - image: itzg/minecraft-server:java17 - env: - - name: EULA - value: "TRUE" - - name: MODE - value: "survival" - - name: DIFFICULTY - value: "peaceful" - - 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/monifactory/" - - name: VERSION - value: "1.20.1" - - name: INIT_MEMORY - value: 4G - - 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: 4 - memory: "4Gi" - limits: - cpu: 8 - memory: "12Gi" - volumeMounts: - - name: monifactory-data - mountPath: /data - volumes: - - name: monifactory-data - persistentVolumeClaim: - claimName: monifactory-data ---- -apiVersion: apps/v1 -kind: StatefulSet metadata: name: atm10-server namespace: minecraft @@ -132,71 +66,3 @@ spec: - name: atm10-data persistentVolumeClaim: claimName: atm10-data ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: star-technology-server - namespace: minecraft -spec: - serviceName: star-technology-server - selector: - matchLabels: - app: star-technology-server - template: - metadata: - labels: - app: star-technology-server - spec: - nodeSelector: - nodepool: worker - containers: - - name: star-technology-server - image: itzg/minecraft-server:java21 - 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/star-technology" - - name: VERSION - value: "1.20.1" - - name: INIT_MEMORY - value: 2G - - name: MAX_MEMORY - value: 15G - - name: ALLOW_FLIGHT - value: "TRUE" - - name: ENABLE_ROLLING_LOGS - value: "TRUE" - - name: USE_MEOWICE_FLAGS - value: "TRUE" - - name: CF_OVERRIDES_EXCLUSIONS - value: | - # Not applicable for server side - shaderpacks/** - ports: - - name: minecraft - containerPort: 25565 - resources: - requests: - cpu: 2 - memory: "2Gi" - limits: - cpu: 6 - memory: "16Gi" - volumeMounts: - - name: star-technology-data - mountPath: /data - volumes: - - name: star-technology-data - persistentVolumeClaim: - claimName: star-technology-data