mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-31 14:57:59 +00:00
- Modified the chart, now the healthz container/service port is optional;
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: palworld
|
name: palworld
|
||||||
version: 0.0.0
|
version: 0.0.1
|
||||||
description: This chart can provide an rAthena emulator installation on a Kubernetes cluster.
|
description: This chart can provide an rAthena emulator installation on a Kubernetes cluster.
|
||||||
type: application
|
type: application
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# palworld
|
# palworld
|
||||||
|
|
||||||

|
  
|
||||||

|
|
||||||

|
|
||||||
|
|
||||||
This chart can provide an rAthena emulator installation on a Kubernetes cluster.
|
This chart can provide an rAthena emulator installation on a Kubernetes cluster.
|
||||||
|
|
||||||
@@ -50,18 +48,18 @@ This chart can provide an rAthena emulator installation on a Kubernetes cluster.
|
|||||||
| 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. |
|
||||||
|
| server.service.healthz | dict | `{"enabled":false,"name":"healthz","port":80,"protocol":"TCP","targetPort":80}` | The "healthz" definition . Use if you need to create a TCP health check for load balancers on cloud services. |
|
||||||
| server.service.labels | object | `{}` | Additional labels to the resources |
|
| server.service.labels | object | `{}` | Additional labels to the resources |
|
||||||
| server.service.ports | dict | | Change the ports to be mapped to the service. If you change those, make sure to change the server.config and server.ports accordingly. |
|
| server.service.ports | dict | | Change the ports to be mapped to the service. If you change those, make sure to change the server.config and server.ports accordingly. |
|
||||||
| server.service.ports[0] | dict | `{"name":"game","port":8211,"protocol":"UDP","targetPort":8211}` | The "game" port definition. If you change this, make sure to change the server.ports.game and server.config.port accordingly. |
|
| server.service.ports[0] | dict | `{"name":"game","port":8211,"protocol":"UDP","targetPort":8211}` | The "game" port definition. If you change this, make sure to change the server.ports.game and server.config.port accordingly. |
|
||||||
| server.service.ports[1] | dict | `{"name":"query","port":27015,"protocol":"UDP","targetPort":27015}` | The "query" port definition . If you change this, make sure to change the server.ports.query and server.config.query_port accordingly. |
|
| server.service.ports[1] | dict | `{"name":"query","port":27015,"protocol":"UDP","targetPort":27015}` | The "query" port definition . If you change this, make sure to change the server.ports.query and server.config.query_port accordingly. |
|
||||||
| server.service.ports[2] | dict | `{"name":"rcon","port":25575,"protocol":"UDP","targetPort":25575}` | The "rcon" port definition . If you change this, make sure to change the server.ports.rcon and server.config.rcon.port accordingly. |
|
| server.service.ports[2] | dict | `{"name":"rcon","port":25575,"protocol":"UDP","targetPort":25575}` | The "rcon" port definition . If you change this, make sure to change the server.ports.rcon and server.config.rcon.port accordingly. |
|
||||||
| server.service.ports[3] | dict | `{"name":"healthz","port":80,"protocol":"TCP","targetPort":80}` | The "healthz" port definition . Used only to create a health check for load balancers on cloud services. |
|
|
||||||
| server.service.type | string | `"LoadBalancer"` | The type of service to be created. |
|
| server.service.type | string | `"LoadBalancer"` | The type of service to be created. |
|
||||||
| server.storage | dict | `{"external":false,"externalName":"","preventDelete":false,"size":"10Gi","storageClassName":""}` | Define some parameters for the storage volume |
|
| server.storage | dict | `{"external":false,"externalName":"","preventDelete":false,"size":"12Gi","storageClassName":""}` | Define some parameters for the storage volume |
|
||||||
| server.storage.external | bool | `false` | Define if it will use an existing PVC containing the installation data. |
|
| server.storage.external | bool | `false` | Define if it will use an existing PVC containing the installation data. |
|
||||||
| server.storage.externalName | bool | `""` | The external PVC name to use. |
|
| server.storage.externalName | bool | `""` | The external PVC name to use. |
|
||||||
| server.storage.preventDelete | bool | `false` | Keeps helm from deleting the PVC. By default, helm does not delete pvcs. |
|
| server.storage.preventDelete | bool | `false` | Keeps helm from deleting the PVC. By default, helm does not delete pvcs. |
|
||||||
| server.storage.size | string | `"10Gi"` | The size of the pvc storage. |
|
| server.storage.size | string | `"12Gi"` | The size of the pvc storage. |
|
||||||
| server.storage.storageClassName | string | `""` | The storage class name. |
|
| server.storage.storageClassName | string | `""` | The storage class name. |
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
|
{{ if .Values.server.service.healthz.enabled }}
|
||||||
- name: healthz
|
- name: healthz
|
||||||
image: "chussenot/tiny-server:latest"
|
image: "chussenot/tiny-server:latest"
|
||||||
imagePullPolicy: {{ .Values.server.image.imagePullPolicy }}
|
imagePullPolicy: {{ .Values.server.image.imagePullPolicy }}
|
||||||
@@ -33,6 +34,7 @@ spec:
|
|||||||
- name: healthz
|
- name: healthz
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{ end }}
|
||||||
- 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 }}
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/component: "{{ .Release.Name }}-server"
|
app.kubernetes.io/component: "{{ .Release.Name }}-server"
|
||||||
ports:
|
ports:
|
||||||
|
{{ if .Values.server.service.healthz.enabled }}
|
||||||
|
- name: {{ .Values.server.service.healthz.name }}
|
||||||
|
port: {{ .Values.server.service.healthz.port }}
|
||||||
|
protocol: {{ .Values.server.service.healthz.protocol }}
|
||||||
|
targetPort: {{ .Values.server.service.healthz.targetPort }}
|
||||||
|
{{ end }}
|
||||||
{{- with .Values.server.service.ports }}
|
{{- with .Values.server.service.ports }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -69,6 +69,14 @@ server:
|
|||||||
labels: { }
|
labels: { }
|
||||||
# -- (string) The type of service to be created.
|
# -- (string) The type of service to be created.
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
# -- (dict) The "healthz" definition .
|
||||||
|
# Use if you need to create a TCP health check for load balancers on cloud services.
|
||||||
|
healthz:
|
||||||
|
enabled: false
|
||||||
|
name: healthz
|
||||||
|
port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 80
|
||||||
# -- (dict) Change the ports to be mapped to the service.
|
# -- (dict) Change the ports to be mapped to the service.
|
||||||
# If you change those, make sure to change the server.config and server.ports accordingly.
|
# If you change those, make sure to change the server.config and server.ports accordingly.
|
||||||
# @notationType -- bigValue
|
# @notationType -- bigValue
|
||||||
@@ -91,12 +99,6 @@ server:
|
|||||||
port: 25575
|
port: 25575
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
targetPort: 25575
|
targetPort: 25575
|
||||||
# -- (dict) The "healthz" port definition .
|
|
||||||
# Used only to create a health check for load balancers on cloud services.
|
|
||||||
- name: healthz
|
|
||||||
port: 80
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 80
|
|
||||||
# -- (dict) Change the game server configuration.
|
# -- (dict) Change the game server configuration.
|
||||||
# If you change those, make sure to change the service.ports and server.ports accordingly.
|
# If you change those, make sure to change the service.ports and server.ports accordingly.
|
||||||
# Those are directly connected with the container image, providing multiple environment variables to the scripts.
|
# Those are directly connected with the container image, providing multiple environment variables to the scripts.
|
||||||
|
|||||||
Reference in New Issue
Block a user