fix: correct Valheim UUID and ingress API version for all Wings instances #96
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: wings-7d2d
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
tls:
|
||||||
|
secretName: wings-7d2d-tls
|
||||||
|
certResolver: letsencrypt
|
||||||
|
routes:
|
||||||
|
- match: Host(`wings-7d2d.khalisio.com`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: wings-7d2d-api
|
||||||
|
port: 8081
|
||||||
@@ -1,27 +1,17 @@
|
|||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: wings-ark-sa-api
|
name: wings-ark-sa
|
||||||
namespace: game-servers
|
namespace: game-servers
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- websecure
|
- websecure
|
||||||
tls:
|
tls:
|
||||||
secretName: wings-ark-sa-tls
|
secretName: wings-ark-sa-tls
|
||||||
|
certResolver: letsencrypt
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`wings-ark-sa.khalisio.com`)
|
- match: Host(`wings-ark-sa.khalisio.com`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: wings-ark-sa-api
|
- name: wings-ark-sa-api
|
||||||
port: 8081
|
port: 8081
|
||||||
scheme: https
|
|
||||||
serversTransport: wings-ark-sa-st
|
|
||||||
---
|
|
||||||
apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: ServersTransport
|
|
||||||
metadata:
|
|
||||||
name: wings-ark-sa-st
|
|
||||||
namespace: game-servers
|
|
||||||
spec:
|
|
||||||
serverTransport:
|
|
||||||
insecureSkipVerify: true
|
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: wings-enshrouded
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
tls:
|
||||||
|
secretName: wings-enshrouded-tls
|
||||||
|
certResolver: letsencrypt
|
||||||
|
routes:
|
||||||
|
- match: Host(`wings-enshrouded.khalisio.com`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: wings-enshrouded-api
|
||||||
|
port: 8081
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: wings-moria
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
tls:
|
||||||
|
secretName: wings-moria-tls
|
||||||
|
certResolver: letsencrypt
|
||||||
|
routes:
|
||||||
|
- match: Host(`wings-moria.khalisio.com`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: wings-moria-api
|
||||||
|
port: 8081
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: wings-palworld
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
tls:
|
||||||
|
secretName: wings-palworld-tls
|
||||||
|
certResolver: letsencrypt
|
||||||
|
routes:
|
||||||
|
- match: Host(`wings-palworld.khalisio.com`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: wings-palworld-api
|
||||||
|
port: 8081
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: wings-satisfactory
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
tls:
|
||||||
|
secretName: wings-satisfactory-tls
|
||||||
|
certResolver: letsencrypt
|
||||||
|
routes:
|
||||||
|
- match: Host(`wings-satisfactory.khalisio.com`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: wings-satisfactory-api
|
||||||
|
port: 8081
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: wings-sotf
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
tls:
|
||||||
|
secretName: wings-sotf-tls
|
||||||
|
certResolver: letsencrypt
|
||||||
|
routes:
|
||||||
|
- match: Host(`wings-sotf.khalisio.com`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: wings-sotf-api
|
||||||
|
port: 8081
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: wings-valheim
|
||||||
|
namespace: game-servers
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: wings
|
||||||
|
app.kubernetes.io/component: game-server
|
||||||
|
app.kubernetes.io/part-of: pelican
|
||||||
|
game: valheim
|
||||||
|
spec:
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: wings-valheim
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: wings-valheim
|
||||||
|
game: valheim
|
||||||
|
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: "9d09e83d-00c3-4404-07c0522a6c25"
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: wings-valheim-config
|
||||||
|
volumeMounts:
|
||||||
|
- name: docker-socket
|
||||||
|
mountPath: /var/run/docker.sock
|
||||||
|
- name: wings-data
|
||||||
|
mountPath: /var/lib/wings
|
||||||
|
- name: server-data
|
||||||
|
mountPath: /mnt/server
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /ready
|
||||||
|
port: 8081
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 10
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 8081
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 30
|
||||||
|
- name: dind
|
||||||
|
image: docker:24-dind
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
env:
|
||||||
|
- name: DOCKER_TLS_CERTDIR
|
||||||
|
value: ""
|
||||||
|
volumeMounts:
|
||||||
|
- name: docker-socket
|
||||||
|
mountPath: /var/run
|
||||||
|
- name: dind-storage
|
||||||
|
mountPath: /var/lib/docker
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- '[ -S /var/run/docker.sock ]'
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 5
|
||||||
|
- 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: "9d09e83d-00c3-4404-07c0522a6c25"
|
||||||
|
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
|
||||||
|
echo "Checking game server status..."
|
||||||
|
done
|
||||||
|
volumeMounts:
|
||||||
|
- name: server-data
|
||||||
|
mountPath: /mnt/server
|
||||||
|
volumes:
|
||||||
|
- name: docker-socket
|
||||||
|
emptyDir: {}
|
||||||
|
- name: dind-storage
|
||||||
|
emptyDir: {}
|
||||||
|
- name: wings-data
|
||||||
|
emptyDir: {}
|
||||||
|
- name: server-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: wings-valheim-data
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: wings-valheim
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
tls:
|
||||||
|
secretName: wings-valheim-tls
|
||||||
|
certResolver: letsencrypt
|
||||||
|
routes:
|
||||||
|
- match: Host(`wings-valheim.khalisio.com`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: wings-valheim-api
|
||||||
|
port: 8081
|
||||||
Reference in New Issue
Block a user