Skip to content

Commit c3f7b6d

Browse files
authored
Support helm chart server separate liveness and readiness probe endpoints (#11800)
* Support helm chart server separate liveness and readiness probe endpoints * Change param naming and add readme
1 parent 91bba48 commit c3f7b6d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

helm/pinot/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,11 @@ following configurable parameters:
377377
| `server.persistence.size` | Size of data volume | `4G` |
378378
| `server.persistence.mountPath` | Mount path of server data volume | `/var/pinot/server/data` |
379379
| `server.persistence.storageClass` | Storage class of backing PVC | `""` |
380+
| `server.probes.endpoint` | Pinot server liveness and readiness probes endpoint | `"/health"` |
381+
| `server.probes.livenessEnabled` | Whether to enable Pinot server liveness probe | `false` |
382+
| `server.probes.livenessProbe.endpoint` | Optional parameter. Specify a specific Pinot server liveness probe endpoint instead of the shared `server.probes.endpoint`, You should use `"/health?checkType=liveness"` | Optional param, no default value |
383+
| `server.probes.readinessEnabled` | Whether to enable Pinot server readiness probe | `false` |
384+
| `server.probes.readinessProbe.endpoint` | Optional parameter. Specify a specific Pinot server readiness probe endpoint instead of the shared `server.probes.endpoint`, You should use `"/health?checkType=readiness"` | Optional param, no default value |
380385
| `server.jvmOpts` | Pinot Server JVM Options | `-Xms512M -Xmx1G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -Xloggc:/opt/pinot/gc-pinot-server.log` |
381386
| `server.log4j2ConfFile` | Pinot Server log4j2 configuration file | `/opt/pinot/conf/log4j2.xml` |
382387
| `server.pluginsDir` | Pinot Server plugins directory | `/opt/pinot/plugins` |

helm/pinot/templates/server/statefulset.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,23 @@ spec:
8888
initialDelaySeconds: {{ .Values.probes.initialDelaySeconds }}
8989
periodSeconds: {{ .Values.probes.periodSeconds }}
9090
httpGet:
91+
{{- if .Values.server.probes.livenessProbe.endpoint }}
92+
path: {{ .Values.server.probes.livenessProbe.endpoint }}
93+
{{- else }}
9194
path: {{ .Values.server.probes.endpoint }}
95+
{{- end }}
9296
port: {{ .Values.server.service.adminPort }}
9397
{{- end }}
9498
{{- if .Values.server.probes.readinessEnabled }}
9599
readinessProbe:
96100
initialDelaySeconds: {{ .Values.probes.initialDelaySeconds }}
97101
periodSeconds: {{ .Values.probes.periodSeconds }}
98102
httpGet:
103+
{{- if .Values.server.probes.readinessProbe.endpoint }}
104+
path: {{ .Values.server.probes.readinessProbe.endpoint }}
105+
{{- else }}
99106
path: {{ .Values.server.probes.endpoint }}
107+
{{- end }}
100108
port: {{ .Values.server.service.adminPort }}
101109
{{- end }}
102110
volumeMounts:

0 commit comments

Comments
 (0)