Skip to content

Commit 4e01ab7

Browse files
committed
adding liveness and readiness probes
and bump image version
1 parent c2ae83f commit 4e01ab7

File tree

6 files changed

+35
-7
lines changed

6 files changed

+35
-7
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,3 @@ By default, the chart will provision a PVC using the default StorageClass. You c
2727
# Configuration
2828

2929
Full configuration options are detailed in the [Chart readme](/chart/enshrouded-k8s/README.md).
30-
31-
# Roadmap
32-
33-
- [ ] Implement health check/readiness check

chart/enshrouded-k8s/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ apiVersion: v2
33
description: A basic chart to deploy Enshrouded dedicated servers.
44
name: enshrouded-k8s
55
type: application
6-
version: 0.3.0
7-
appVersion: "1.0.0"
6+
version: 0.4.0
7+
appVersion: "1.1.0"
88
kubeVersion: ">=1.26.0-0"
99
sources:
1010
- https://github.com/bdelwood/enshrouded-k8s

chart/enshrouded-k8s/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# enshrouded-k8s
22

3-
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
3+
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)
44

55
A basic chart to deploy Enshrouded dedicated servers.
66

@@ -52,6 +52,9 @@ Kubernetes: `>=1.26.0-0`
5252
| persistence.storageClassName | string | `""` | Storage class name for the PVC. |
5353
| podAnnotations | object | `{}` | Annotations to add to the pod. |
5454
| podSecurityContext | object | `{}` | Security context for the pod. |
55+
| probes | object | `{"liveness":{},"readiness":{}}` | Liveness and readiness probes. |
56+
| probes.liveness | object | `{}` | Liveness probe |
57+
| probes.readiness | object | `{}` | Readiness probe. |
5558
| resources.limits | object | `{"cpu":8,"memory":"24Gi"}` | Resource limits (CPU, Memory) for the server. |
5659
| resources.requests | object | `{"cpu":6,"memory":"16Gi"}` | Resource requests (CPU, Memory) for the server. |
5760
| securityContext | object | `{}` | Security context for the pod containers. |

chart/enshrouded-k8s/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ spec:
6868
{{- end }}
6969
resources:
7070
{{- toYaml .Values.resources | nindent 12 }}
71+
{{- with .Values.probes.liveness }}
72+
livenessProbe:
73+
{{- toYaml . | nindent 12 }}
74+
{{- end }}
75+
{{- with .Values.probes.readiness }}
76+
readinessProbe:
77+
{{- toYaml . | nindent 12 }}
78+
{{- end }}
7179
{{- if .Values.persistence.enabled }}
7280
volumes:
7381
- name: datadir

chart/enshrouded-k8s/values.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,26 @@ resources:
119119
memory: 16Gi
120120
cpu: 6
121121

122+
# -- Liveness and readiness probes.
123+
probes:
124+
# -- Liveness probe
125+
liveness: {}
126+
# exec:
127+
# command:
128+
# - sh
129+
# - -c
130+
# - pgrep supervisord > /dev/null || exit 1
131+
# initialDelaySeconds: 30
132+
# -- Readiness probe.
133+
readiness: {}
134+
# exec:
135+
# command:
136+
# - sh
137+
# - -c
138+
# - supervisorctl status enshrouded-server | grep -q RUNNING
139+
# initialDelaySeconds: 60
140+
141+
122142
serviceAccount:
123143
# -- Specifies whether a service account should be created.
124144
create: false

rendered.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)