Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a3e4307f9 | |||
| 29f49c9ef5 | |||
| 860cb50298 | |||
| ab67b807b1 | |||
| 77ca069a82 | |||
| f223745e5c | |||
| a5bcabe715 |
@@ -1,59 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: bitwarden
|
|
||||||
namespace: security
|
|
||||||
labels:
|
|
||||||
app: bitwarden
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: bitwarden
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: bitwarden
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: bitwarden
|
|
||||||
image: bitwarden/server:latest
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
env:
|
|
||||||
- name: SIGNUPS_ALLOWED
|
|
||||||
value: "true"
|
|
||||||
- name: WEBVAULT_ENABLED
|
|
||||||
value: "true"
|
|
||||||
- name: IDENTITY_URL
|
|
||||||
value: "https://bitwarden.khalisio.com"
|
|
||||||
- name: API_URL
|
|
||||||
value: "https://bitwarden.khalisio.com"
|
|
||||||
- name: DATABASE_URL
|
|
||||||
value: "/bitwarden/data/bitwarden.db"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 256Mi
|
|
||||||
limits:
|
|
||||||
cpu: 500m
|
|
||||||
memory: 512Mi
|
|
||||||
volumeMounts:
|
|
||||||
- name: bitwarden-data
|
|
||||||
mountPath: /bitwarden
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: 80
|
|
||||||
initialDelaySeconds: 15
|
|
||||||
periodSeconds: 10
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: 80
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 30
|
|
||||||
volumes:
|
|
||||||
- name: bitwarden-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: bitwarden-data
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: bitwarden
|
|
||||||
namespace: security
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
||||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
||||||
spec:
|
|
||||||
ingressClassName: traefik
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- bitwarden.khalisio.com
|
|
||||||
secretName: bitwarden-tls
|
|
||||||
rules:
|
|
||||||
- host: bitwarden.khalisio.com
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: bitwarden
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: bitwarden-data
|
|
||||||
namespace: security
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: longhorn
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: bitwarden
|
|
||||||
namespace: security
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: bitwarden
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
||||||
type: ClusterIP
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -4,10 +4,11 @@ metadata:
|
|||||||
name: wings-ark-sa
|
name: wings-ark-sa
|
||||||
namespace: game-servers
|
namespace: game-servers
|
||||||
labels:
|
labels:
|
||||||
app: wings-ark-sa
|
app.kubernetes.io/name: wings
|
||||||
|
app.kubernetes.io/component: game-server
|
||||||
|
app.kubernetes.io/part-of: pelican
|
||||||
game: ark-sa
|
game: ark-sa
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
@@ -21,101 +22,98 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/arch: amd64
|
kubernetes.io/arch: amd64
|
||||||
affinity:
|
serviceAccountName: wings-ark-sa
|
||||||
podAntiAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- labelSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- key: game
|
|
||||||
operator: In
|
|
||||||
values: [ark-sa]
|
|
||||||
topologyKey: "kubernetes.io/hostname"
|
|
||||||
volumes:
|
|
||||||
- name: wings-config
|
|
||||||
secret:
|
|
||||||
secretName: wings-ark-sa-config
|
|
||||||
- name: game-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: wings-ark-sa-data
|
|
||||||
- name: docker-socket
|
|
||||||
emptyDir: {}
|
|
||||||
- name: autostart-token
|
|
||||||
secret:
|
|
||||||
secretName: pelican-autostart-key
|
|
||||||
containers:
|
containers:
|
||||||
- name: dind
|
|
||||||
image: docker:dind
|
|
||||||
args:
|
|
||||||
- "--storage-driver=vfs"
|
|
||||||
- "--iptables=false"
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
volumeMounts:
|
|
||||||
- name: docker-socket
|
|
||||||
mountPath: /var/run/docker.sock
|
|
||||||
env:
|
|
||||||
- name: DOCKER_TLS_CERTDIR
|
|
||||||
value: ""
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "500m"
|
|
||||||
memory: "512Mi"
|
|
||||||
limits:
|
|
||||||
cpu: "1"
|
|
||||||
memory: "1Gi"
|
|
||||||
- name: wings
|
- name: wings
|
||||||
image: ghcr.io/pelican-dev/wings:latest
|
image: ghcr.io/pelican-dev/wings:latest
|
||||||
command:
|
|
||||||
- /bin/sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
export DOCKER_HOST=tcp://localhost:2375
|
|
||||||
exec wings
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: wings-ark-sa-config
|
|
||||||
env:
|
env:
|
||||||
- name: DOCKER_HOST
|
- name: DOCKER_HOST
|
||||||
value: tcp://localhost:2375
|
value: tcp://localhost:2375
|
||||||
- name: WATCHDOG_ENABLED
|
- name: WINGS_UID
|
||||||
value: "true"
|
value: "1000"
|
||||||
|
- name: WINGS_GID
|
||||||
|
value: "1000"
|
||||||
|
- name: WINGS_PORT
|
||||||
|
value: "8081"
|
||||||
|
- name: WINGS_API_SFTP_PORT
|
||||||
|
value: "2023"
|
||||||
|
- name: WINGS_SERVER_UUID
|
||||||
|
value: "3fd0b08d-7393-4d0f-b11c-bad5e1d1f771"
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: wings-ark-sa-config
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: wings-config
|
|
||||||
mountPath: /etc/pterodactyl
|
|
||||||
readOnly: true
|
|
||||||
- name: game-data
|
|
||||||
mountPath: /mnt/server
|
|
||||||
- name: docker-socket
|
- name: docker-socket
|
||||||
mountPath: /var/run/docker.sock
|
mountPath: /var/run/docker.sock
|
||||||
resources:
|
- name: wings-data
|
||||||
requests:
|
mountPath: /var/lib/wings
|
||||||
cpu: "2"
|
- name: server-data
|
||||||
memory: "4Gi"
|
mountPath: /mnt/server
|
||||||
limits:
|
readinessProbe:
|
||||||
cpu: "4"
|
httpGet:
|
||||||
memory: "8Gi"
|
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
|
- name: game-autostart
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
|
env:
|
||||||
|
- name: PELICAN_API_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: pelican-autostart-key
|
||||||
|
key: api_key
|
||||||
|
- name: SERVER_UUID
|
||||||
|
value: "3fd0b08d-7393-4d0f-b11c-bad5e1d1f771"
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -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
|
while true; do
|
||||||
sleep 60
|
sleep 60
|
||||||
curl -sf -X POST "https://pelican.khalisio.com/api/client/servers/3fd0b08d-7393-4d0f-b11c-bad5e1d1f771/power" \
|
echo "Checking game server status..."
|
||||||
-H "Authorization: Bearer $(cat /etc/secrets/autostart/api_key)" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d '{"signal":"start"}' > /dev/null 2>&1 || true
|
|
||||||
done
|
done
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: autostart-token
|
- name: server-data
|
||||||
mountPath: /etc/secrets/autostart
|
mountPath: /mnt/server
|
||||||
readOnly: true
|
volumes:
|
||||||
resources:
|
- name: docker-socket
|
||||||
requests:
|
emptyDir: {}
|
||||||
cpu: "50m"
|
- name: dind-storage
|
||||||
memory: "64Mi"
|
emptyDir: {}
|
||||||
limits:
|
- name: wings-data
|
||||||
cpu: "100m"
|
emptyDir: {}
|
||||||
memory: "128Mi"
|
- name: server-data
|
||||||
restartPolicy: Always
|
persistentVolumeClaim:
|
||||||
|
claimName: wings-ark-sa-data
|
||||||
|
|||||||
@@ -6,21 +6,17 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
refreshInterval: 1h
|
refreshInterval: 1h
|
||||||
secretStoreRef:
|
secretStoreRef:
|
||||||
name: vault
|
name: vault-secret-store
|
||||||
kind: ClusterSecretStore
|
kind: ClusterSecretStore
|
||||||
target:
|
target:
|
||||||
name: wings-ark-sa-config
|
name: wings-ark-sa-config
|
||||||
creationPolicy: Owner
|
creationPolicy: Owner
|
||||||
data:
|
data:
|
||||||
- secretKey: WINGS_UUID
|
- secretKey: config
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: wings/ark-sa
|
key: Talos Cluster/wings/ark-sa
|
||||||
property: uuid
|
property: config
|
||||||
- secretKey: WINGS_TOKEN
|
- secretKey: api_key
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: wings/ark-sa
|
key: Talos Cluster/wings/ark-sa
|
||||||
property: token
|
property: api_key
|
||||||
- secretKey: LOCALE
|
|
||||||
remoteRef:
|
|
||||||
key: wings/ark-sa
|
|
||||||
property: locale
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: wings-ark-sa
|
name: wings-ark-sa-api
|
||||||
namespace: game-servers
|
namespace: game-servers
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: security
|
name: game-servers
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: bitwarden
|
app.kubernetes.io/name: game-servers
|
||||||
app.kubernetes.io/managed-by: orion
|
app.kubernetes.io/managed-by: orion
|
||||||
@@ -4,7 +4,8 @@ metadata:
|
|||||||
name: wings-ark-sa-api
|
name: wings-ark-sa-api
|
||||||
namespace: game-servers
|
namespace: game-servers
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
selector:
|
||||||
|
app: wings-ark-sa
|
||||||
ports:
|
ports:
|
||||||
- name: api
|
- name: api
|
||||||
port: 8081
|
port: 8081
|
||||||
@@ -14,5 +15,3 @@ spec:
|
|||||||
port: 2023
|
port: 2023
|
||||||
targetPort: 2023
|
targetPort: 2023
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
selector:
|
|
||||||
app: wings-ark-sa
|
|
||||||
|
|||||||
@@ -4,22 +4,26 @@ metadata:
|
|||||||
name: wings-ark-sa-game
|
name: wings-ark-sa-game
|
||||||
namespace: game-servers
|
namespace: game-servers
|
||||||
annotations:
|
annotations:
|
||||||
metallb.universe.tf/address-pool: default-lb-pool
|
metallb.universe.tf/address-pool: default
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
loadBalancerIP: 10.4.4.200
|
loadBalancerIP: 10.4.4.200
|
||||||
ports:
|
|
||||||
- name: ark-game
|
|
||||||
port: 7777
|
|
||||||
protocol: UDP
|
|
||||||
targetPort: 7777
|
|
||||||
- name: ark-query
|
|
||||||
port: 27015
|
|
||||||
protocol: UDP
|
|
||||||
targetPort: 27015
|
|
||||||
- name: ark-tcp
|
|
||||||
port: 27016
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 27016
|
|
||||||
selector:
|
selector:
|
||||||
app: wings-ark-sa
|
app: wings-ark-sa
|
||||||
|
ports:
|
||||||
|
- name: game-udp-1
|
||||||
|
port: 7777
|
||||||
|
targetPort: 7777
|
||||||
|
protocol: UDP
|
||||||
|
- name: game-udp-2
|
||||||
|
port: 7778
|
||||||
|
targetPort: 7778
|
||||||
|
protocol: UDP
|
||||||
|
- name: game-tcp
|
||||||
|
port: 27015
|
||||||
|
targetPort: 27015
|
||||||
|
protocol: TCP
|
||||||
|
- name: game-tcp-2
|
||||||
|
port: 27016
|
||||||
|
targetPort: 27016
|
||||||
|
protocol: TCP
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,118 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
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