Skip to content

Commit

Permalink
Fix for Kubernetes manifests (#346)
Browse files Browse the repository at this point in the history
* use service type LoadBalancer, different keys for YAML port indexes
* fix port name and YAML indexes; separate config from cache volume
* add comment for loadBalancerIP

---------

Co-authored-by: Robert Thomas <[email protected]>
  • Loading branch information
didi-home and wolveix authored Sep 26, 2024
1 parent 916e75c commit 000ebe7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
19 changes: 11 additions & 8 deletions cluster/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ metadata:
labels:
app: satisfactory
spec:
type: NodePort
type: LoadBalancer
allocateLoadBalancerNodePorts: true
externalTrafficPolicy: Cluster
internalTrafficPolicy: Cluster
# might be necessary for your cluster:
# loadBalancerIP: <external-IP>
ports:
- port: 7777
nodePort: 7777
- name: "game"
port: 7777
protocol: UDP
name: "game"
targetPort: 7777
- port: 7777
nodePort: 7777
- name: "api"
port: 7777
protocol: TCP
name: "gametcp"
targetPort: 7777
selector:
app: satisfactory
app: satisfactory
19 changes: 14 additions & 5 deletions cluster/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,25 @@ spec:
- name: STEAMBETA
value: "false"
ports:
- containerPort: 7777
name: "gameTCP"
- name: "api"
containerPort: 7777
protocol: TCP
- containerPort: 7777
name: "game"
- name: "game"
containerPort: 7777
protocol: UDP
volumeMounts:
- name: satisfactory-data
- 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:
Expand Down

0 comments on commit 000ebe7

Please sign in to comment.