diff --git a/surf/megastructure-surf.yaml b/surf/megastructure-surf.yaml index 9cc124a..d642dcd 100755 --- a/surf/megastructure-surf.yaml +++ b/surf/megastructure-surf.yaml @@ -42,6 +42,18 @@ spec: --- +apiVersion: v1 +kind: ConfigMap +metadata: + name: cfg + namespace: surf +data: + mapcycle.txt: | + surf_fornax + surf_boreas + +--- + # ----------------------------------------------------------------------- # DEPLOYMENT # ----------------------------------------------------------------------- @@ -49,17 +61,17 @@ spec: apiVersion: apps/v1 kind: Deployment metadata: - name: megastructure-surf + name: cssds namespace: surf spec: replicas: 1 selector: matchLabels: - app: megastructure-surf + app: cssds template: metadata: labels: - app: megastructure-surf + app: cssds spec: initContainers: - name: fix-permissions @@ -69,10 +81,10 @@ spec: - name: cssds mountPath: /home/steam/cssds containers: - - name: megastructure-surf - image: registry.ntwl.xyz/megastructure-surf + - name: cssds + image: registry.ntwl.xyz/megastructure-surf-cssds imagePullPolicy: Always - command: ["sleep", "100000000"] + # command: ["sleep", "100000000"] ports: - containerPort: 27015 - containerPort: 27005 @@ -85,6 +97,9 @@ spec: - name: fastdl-maps mountPath: /fastdl/maps readOnly: true + - name: cfg + mountPath: /home/steam/cfg + readOnly: true volumes: - name: cssds persistentVolumeClaim: @@ -92,6 +107,9 @@ spec: - name: fastdl-maps persistentVolumeClaim: claimName: fastdl-maps + - name: cfg + configMap: + name: cfg --- @@ -102,12 +120,12 @@ spec: apiVersion: v1 kind: Service metadata: - name: megastructure-surf + name: cssds namespace: surf spec: type: NodePort selector: - app: megastructure-surf + app: cssds ports: - name: game-port protocol: UDP @@ -134,51 +152,49 @@ metadata: spec: restartPolicy: Never containers: - - name: mapsdl - image: registry.ntwl.xyz/megastructure-surf-mapsdl:latest - imagePullPolicy: Always - command: - - "deno" - - "run" - - "-A" - - "mapsdl.ts" - - env: - - name: MAPS_DIR - value: "/maps" - - name: TEMP_DIR - value: "/tmp/mapsdl" - - name: GOOGLE_APPLICATION_CREDENTIALS - value: "/app/credentials/service-account.json" - - name: MAPS_WISHLIST - value: | - surf_utopia_njv - surf_kitsune - surf_lt_omnific - surf_pantheon - surf_kitsune2 - surf_kepler - surf_anzchamps - surf_deathstar - surf_ebony - surf_fornax - surf_garden - surf_in_space - - volumeMounts: - - name: fastdl-maps - mountPath: /maps - - name: credentials - mountPath: /app/credentials - readOnly: true - - volumes: + - name: mapsdl + image: registry.ntwl.xyz/megastructure-surf-mapsdl:latest + imagePullPolicy: Always + command: + - "deno" + - "run" + - "-A" + - "mapsdl.ts" + env: + - name: MAPS_DIR + value: "/maps" + - name: TEMP_DIR + value: "/tmp/mapsdl" + - name: GOOGLE_APPLICATION_CREDENTIALS + value: "/app/credentials/service-account.json" + - name: MAPS_WISHLIST + value: | + surf_anzchamps + surf_boreas + surf_deathstar + surf_ebony + surf_fornax + surf_garden + surf_in_space + surf_kepler + surf_kitsune + surf_kitsune2 + surf_lt_omnific + surf_pantheon + surf_utopia_njv + volumeMounts: - name: fastdl-maps - persistentVolumeClaim: - claimName: fastdl-maps + mountPath: /maps - name: credentials - secret: - secretName: mapsdl-credentials + mountPath: /app/credentials + readOnly: true + volumes: + - name: fastdl-maps + persistentVolumeClaim: + claimName: fastdl-maps + - name: credentials + secret: + secretName: mapsdl-credentials ---