Skip to content

Commit

Permalink
readiness and liveness probes
Browse files Browse the repository at this point in the history
  • Loading branch information
bdelwood committed Apr 14, 2024
1 parent d7b5965 commit dd9aea0
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chart/palworld-k8s/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion chart/palworld-k8s/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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. |
Expand Down
8 changes: 8 additions & 0 deletions chart/palworld-k8s/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions chart/palworld-k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd9aea0

Please sign in to comment.