diff --git a/chart/palworld-k8s/Chart.yaml b/chart/palworld-k8s/Chart.yaml index 3292135..04b1b0c 100644 --- a/chart/palworld-k8s/Chart.yaml +++ b/chart/palworld-k8s/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 description: A basic chart to deploy Palworld dedicated servers. name: palworld-k8s type: application -version: 0.8.0 +version: 0.8.1 appVersion: "v0.35.1" kubeVersion: ">=1.26.0-0" sources: diff --git a/chart/palworld-k8s/README.md b/chart/palworld-k8s/README.md index 3e6d3df..3a0bec9 100644 --- a/chart/palworld-k8s/README.md +++ b/chart/palworld-k8s/README.md @@ -1,6 +1,6 @@ # palworld-k8s -![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.35.1](https://img.shields.io/badge/AppVersion-v0.35.1-informational?style=flat-square) +![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.35.1](https://img.shields.io/badge/AppVersion-v0.35.1-informational?style=flat-square) A basic chart to deploy Palworld dedicated servers. @@ -63,6 +63,9 @@ Kubernetes: `>=1.26.0-0` | persistence.storageClassName | string | `""` | Storage class name for the PVC. | | podAnnotations | object | `{}` | Annotations to add to the pod. | | podSecurityContext | object | `{}` | Security context for the pod. | +| probes | object | `{"liveness":{},"readiness":{}}` | Liveness and readiness probes. | +| probes.liveness | object | `{}` | Liveness probe | +| probes.readiness | object | `{}` | Readiness probe. | | rcon.enabled | bool | `true` | Enable or disable RCON. | | rcon.existingSecret | string | `""` | Name of an existing secret for the RCON (admin) password. | | rcon.password | string | `""` | RCON (admin) password. If one is not provided and RCON is enabled, one will be generated. | diff --git a/chart/palworld-k8s/templates/deployment.yaml b/chart/palworld-k8s/templates/deployment.yaml index a97d68c..cbe37dd 100644 --- a/chart/palworld-k8s/templates/deployment.yaml +++ b/chart/palworld-k8s/templates/deployment.yaml @@ -87,6 +87,14 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.probes.liveness }} + livenessProbe: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.probes.readiness }} + readinessProbe: + {{- toYaml . | nindent 12 }} + {{- end }} {{- if .Values.persistence.enabled }} volumes: - name: datadir diff --git a/chart/palworld-k8s/values.yaml b/chart/palworld-k8s/values.yaml index e653dc4..6aa51b3 100644 --- a/chart/palworld-k8s/values.yaml +++ b/chart/palworld-k8s/values.yaml @@ -208,6 +208,25 @@ resources: memory: 8Gi cpu: 4 +# -- Liveness and readiness probes. +probes: + # -- Liveness probe + liveness: {} + # exec: + # command: + # - sh + # - -c + # - pgrep PalServer > /dev/null || exit 1 + # initialDelaySeconds: 30 + # -- Readiness probe. + readiness: {} + # exec: + # command: + # - sh + # - -c + # - rcon-cli Info | grep -q "Pal Server" + # initialDelaySeconds: 60 + serviceAccount: # -- Specifies whether a service account should be created. create: false