feat: deploy all 8 Wings instances (ARK SA, 7D2D, Enshrouded, Moria, Palworld, Satisfactory, SOTF, Valheim)
This commit is contained in:
@@ -0,0 +1,82 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: wings-sotf
|
||||||
|
namespace: game-servers
|
||||||
|
labels:
|
||||||
|
app: wings-sotf
|
||||||
|
game: sotf
|
||||||
|
spec:
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: wings-sotf
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: wings-sotf
|
||||||
|
game: sotf
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
containers:
|
||||||
|
- name: wings
|
||||||
|
image: ghcr.io/pelican-dev/wings:latest
|
||||||
|
env:
|
||||||
|
- name: DOCKER_HOST
|
||||||
|
value: tcp://localhost:2375
|
||||||
|
- name: WINGS_UID
|
||||||
|
value: "1000"
|
||||||
|
- name: WINGS_GID
|
||||||
|
value: "1000"
|
||||||
|
- name: WINGS_PORT
|
||||||
|
value: "8081"
|
||||||
|
- name: WINGS_API_SFTP_PORT
|
||||||
|
value: "2023"
|
||||||
|
- name: WINGS_SERVER_UUID
|
||||||
|
value: "37d83008-79b1-4495-9f87-09af049dad1c"
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: wings-sotf-config
|
||||||
|
volumeMounts:
|
||||||
|
- name: server-data
|
||||||
|
mountPath: /home/container
|
||||||
|
- name: dind
|
||||||
|
image: docker:24-dind
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
env:
|
||||||
|
- name: DOCKER_TLS_CERTDIR
|
||||||
|
value: ""
|
||||||
|
volumeMounts:
|
||||||
|
- name: docker-socket
|
||||||
|
mountPath: /var/run
|
||||||
|
- name: game-autostart
|
||||||
|
image: curlimages/curl:latest
|
||||||
|
env:
|
||||||
|
- name: PELICAN_API_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: pelican-autostart-key
|
||||||
|
key: api_key
|
||||||
|
- name: SERVER_UUID
|
||||||
|
value: "37d83008-79b1-4495-9f87-09af049dad1c"
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
echo "Waiting for Wings API to be ready..."
|
||||||
|
while ! curl -sf http://localhost:8081/ready; do
|
||||||
|
sleep 2
|
||||||
|
done
|
||||||
|
echo "Wings ready. Starting game server..."
|
||||||
|
while true; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
volumes:
|
||||||
|
- name: docker-socket
|
||||||
|
emptyDir: {}
|
||||||
|
- name: server-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: wings-sotf-data
|
||||||
Reference in New Issue
Block a user