- Added limits for the server container spec;

This commit is contained in:
Filipe Souza
2024-01-25 01:30:21 -03:00
parent 3f00d4ad0d
commit a8e466d9dd
3 changed files with 13 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ This chart can provide an rAthena emulator installation on a Kubernetes cluster.
| server.ports[0] | dict | `{"containerPort":8211,"name":"game","protocol":"UDP"}` | The "game" port definition. If you change this, make sure to change the service.ports.game and server.config accordingly. | | server.ports[0] | dict | `{"containerPort":8211,"name":"game","protocol":"UDP"}` | The "game" port definition. If you change this, make sure to change the service.ports.game and server.config accordingly. |
| server.ports[1] | dict | `{"containerPort":27015,"name":"query","protocol":"UDP"}` | The "query" port definition . If you change this, make sure to change the service.ports.query_port and server.config accordingly. | | server.ports[1] | dict | `{"containerPort":27015,"name":"query","protocol":"UDP"}` | The "query" port definition . If you change this, make sure to change the service.ports.query_port and server.config accordingly. |
| server.ports[2] | dict | `{"containerPort":25575,"name":"rcon","protocol":"UDP"}` | The "rcon" port definition . If you change this, make sure to change the service.ports.rcon and server.config accordingly. | | server.ports[2] | dict | `{"containerPort":25575,"name":"rcon","protocol":"UDP"}` | The "rcon" port definition . If you change this, make sure to change the service.ports.rcon and server.config accordingly. |
| server.resources | dict | `{"limits":{"cpu":4,"memory":"12Gi"},"requests":{"cpu":4,"memory":"8Gi"}}` | Resources limits for the container. |
| server.service | dict | | Change the service configuration. If you change those, make sure to change the server.config and server.ports accordingly. | | server.service | dict | | Change the service configuration. If you change those, make sure to change the server.config and server.ports accordingly. |
| server.service.annotations | object | `{}` | Additional annotations to the resources | | server.service.annotations | object | `{}` | Additional annotations to the resources |
| server.service.enabled | bool | `true` | Enables the creation of the service component. | | server.service.enabled | bool | `true` | Enables the creation of the service component. |

View File

@@ -36,6 +36,10 @@ spec:
- name: server - name: server
image: "{{ .Values.server.image.name }}:{{ .Values.server.image.tag }}" image: "{{ .Values.server.image.name }}:{{ .Values.server.image.tag }}"
imagePullPolicy: {{ .Values.server.image.imagePullPolicy }} imagePullPolicy: {{ .Values.server.image.imagePullPolicy }}
resources:
{{- with .Values.server.resources }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports: ports:
{{- with .Values.server.ports }} {{- with .Values.server.ports }}
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}

View File

@@ -7,6 +7,14 @@ server:
annotations: { } annotations: { }
# -- Additional labels to the resources # -- Additional labels to the resources
labels: { } labels: { }
# -- (dict) Resources limits for the container.
resources:
limits:
cpu: 4
memory: "12Gi"
requests:
cpu: 4
memory: "8Gi"
# -- (dict) Define some parameters for the storage volume # -- (dict) Define some parameters for the storage volume
storage: storage:
# -- (bool) Define if it will use an existing PVC containing the installation data. # -- (bool) Define if it will use an existing PVC containing the installation data.