diff --git a/satisfactory/Chart.yaml b/satisfactory/Chart.yaml index 668439c..3492955 100644 --- a/satisfactory/Chart.yaml +++ b/satisfactory/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: satisfactory description: A Helm chart to deploy a Satisfactory Gameserver on Kubernetes type: application -version: 1.2.0+upv1.9.10 +version: 1.3.0+upv1.9.10 appVersion: "v1.9.10" maintainers: - name: jklein \ No newline at end of file diff --git a/satisfactory/templates/satisfactory-server.sfs.yaml b/satisfactory/templates/satisfactory-server.sfs.yaml index c5d5b62..289c081 100644 --- a/satisfactory/templates/satisfactory-server.sfs.yaml +++ b/satisfactory/templates/satisfactory-server.sfs.yaml @@ -56,15 +56,10 @@ spec: failureThreshold: 4 successThreshold: 1 periodSeconds: 30 + {{- with .Values.server.resources }} resources: - requests: - memory: "4Gi" - cpu: "1" - ephemeral-storage: "5Gi" - limits: - memory: "8Gi" - cpu: "2" - ephemeral-storage: "10Gi" + {{ toYaml . | nindent 12 }} + {{- end }} volumeMounts: - name: satisfactory-volume mountPath: /config @@ -72,6 +67,8 @@ spec: - name: satisfactory-volume mountPath: /config/gamefiles subPath: gameFiles/ + securityContext: + allowPrivilegeEscalation: false volumes: - name: satisfactory-volume persistentVolumeClaim: diff --git a/satisfactory/values.yaml b/satisfactory/values.yaml index a003b27..e43d2a4 100644 --- a/satisfactory/values.yaml +++ b/satisfactory/values.yaml @@ -9,4 +9,13 @@ game: server: gamePort: 30777 messagingPort: 30888 - storage: 20Gi \ No newline at end of file + storage: 20Gi + resources: + requests: + memory: "4Gi" + cpu: "1" + ephemeral-storage: "5Gi" + limits: + memory: "8Gi" + cpu: "2" + ephemeral-storage: "10Gi" \ No newline at end of file