Skip to content

Commit

Permalink
satisfactory server
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCardin committed Dec 2, 2024
1 parent b59106f commit 22616bd
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/apps/argo-apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resources:
- ../trilium-notes/
- ../ollama/
- ../jobscrapper/
- ../satisfactory-server/

# System applications
- ../../system/cert-manager
Expand Down
21 changes: 21 additions & 0 deletions kubernetes/apps/satisfactory-server/argo-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: satisfactory
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: satisfactory
source:
repoURL: https://github.com/ThomasCardin/homelab.git
path: kubernetes/apps/satisfactory-server/base
targetRevision: HEAD
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
58 changes: 58 additions & 0 deletions kubernetes/apps/satisfactory-server/base/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: satisfactory
spec:
selector:
matchLabels:
app: satisfactory
serviceName: "satisfactory"
replicas: 1
template:
metadata:
labels:
app: satisfactory
spec:
containers:
- name: satisfactory
image: ghcr.io/thomascardin/satisfactory-server:latest
env:
- name: DEBUG
value: "false"
- name: MAXPLAYERS
value: "2"
- name: PGID
value: "1000"
- name: PUID
value: "1000"
- name: SKIPUPDATE
value: "false"
- name: STEAMBETA
value: "false"
ports:
- name: "api"
containerPort: 7777
protocol: TCP
- name: "game"
containerPort: 7777
protocol: UDP
volumeMounts:
- name: satisfactory-config
mountPath: /config
- name: satisfactory-data
mountPath: /config/gamefiles
volumeClaimTemplates:
- metadata:
name: satisfactory-config
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
- metadata:
name: satisfactory-data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 50Gi
22 changes: 22 additions & 0 deletions kubernetes/apps/satisfactory-server/base/svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
apiVersion: v1
kind: Service
metadata:
name: satisfactory
labels:
app: satisfactory
spec:
type: ClusterIP
externalTrafficPolicy: Cluster
internalTrafficPolicy: Cluster
ports:
- name: "game"
port: 7777
protocol: UDP
targetPort: 7777
- name: "api"
port: 7777
protocol: TCP
targetPort: 7777
selector:
app: satisfactory
5 changes: 5 additions & 0 deletions kubernetes/apps/satisfactory-server/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- argo-app.yaml

0 comments on commit 22616bd

Please sign in to comment.