Skip to content

Commit b23647e

Browse files
authored
[bitnami/kubernetes-event-exporter] feat: configure probes (#21219)
* [bitnami/kubernetes-event-exporter] feat: configure probes Since resmoio/kubernetes-event-exporter#82 there are endpoints availabe for probes. Signed-off-by: François Blondel <francois.blondel@diva-e.com> * Minor Bump Signed-off-by: François Blondel <francois.blondel@diva-e.com> --------- Signed-off-by: François Blondel <francois.blondel@diva-e.com> Co-authored-by: François Blondel <francois.blondel@diva-e.com>
1 parent 8b760d7 commit b23647e

File tree

4 files changed

+80
-3
lines changed

4 files changed

+80
-3
lines changed

bitnami/kubernetes-event-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ maintainers:
3131
name: kubernetes-event-exporter
3232
sources:
3333
- https://github.com/bitnami/charts/tree/main/bitnami/kubernetes-event-exporter
34-
version: 2.9.3
34+
version: 2.10.0

bitnami/kubernetes-event-exporter/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,24 @@ The command removes all the Kubernetes components associated with the chart and
115115
| `lifecycleHooks` | Lifecycle for the container to automate configuration before or after startup | `{}` |
116116
| `resources.limits` | Specify resource limits which the container is not allowed to succeed. | `{}` |
117117
| `resources.requests` | Specify resource requests which the container needs to spawn. | `{}` |
118+
| `livenessProbe.enabled` | Enable livenessProbe on Kubernetes event exporter container | `true` |
119+
| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `5` |
120+
| `livenessProbe.periodSeconds` | Period seconds for livenessProbe | `5` |
121+
| `livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `2` |
122+
| `livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `5` |
123+
| `livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` |
124+
| `readinessProbe.enabled` | Enable readinessProbe on Kubernetes event exporter container | `true` |
125+
| `readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` |
126+
| `readinessProbe.periodSeconds` | Period seconds for readinessProbe | `5` |
127+
| `readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `2` |
128+
| `readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `1` |
129+
| `readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` |
130+
| `startupProbe.enabled` | Enable startupProbe on Kubernetes event exporter container | `false` |
131+
| `startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `40` |
132+
| `startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
133+
| `startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `15` |
134+
| `startupProbe.failureThreshold` | Failure threshold for startupProbe | `15` |
135+
| `startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
118136
| `customStartupProbe` | Configure startup probe for Kubernetes event exporter pod | `{}` |
119137
| `customLivenessProbe` | Configure liveness probe for Kubernetes event exporter pod | `{}` |
120138
| `customReadinessProbe` | Configure readiness probe for Kubernetes event exporter pod | `{}` |
@@ -212,4 +230,4 @@ Unless required by applicable law or agreed to in writing, software
212230
distributed under the License is distributed on an "AS IS" BASIS,
213231
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
214232
See the License for the specific language governing permissions and
215-
limitations under the License.
233+
limitations under the License.

bitnami/kubernetes-event-exporter/templates/deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,27 @@ spec:
107107
{{- if not .Values.diagnosticMode.enabled }}
108108
{{- if .Values.customStartupProbe }}
109109
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }}
110+
{{- else if .Values.startupProbe.enabled }}
111+
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.startupProbe "enabled") "context" $) | nindent 12 }}
112+
httpGet:
113+
path: /-/healthy
114+
port: http
110115
{{- end }}
111116
{{- if .Values.customLivenessProbe }}
112117
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
118+
{{- else if .Values.livenessProbe.enabled }}
119+
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.livenessProbe "enabled") "context" $) | nindent 12 }}
120+
httpGet:
121+
path: /-/healthy
122+
port: http
113123
{{- end }}
114124
{{- if .Values.customReadinessProbe }}
115125
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
126+
{{- else if .Values.readinessProbe.enabled }}
127+
readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.readinessProbe "enabled") "context" $) | nindent 12 }}
128+
httpGet:
129+
path: /-/ready
130+
port: http
116131
{{- end }}
117132
{{- end }}
118133
resources: {{- toYaml .Values.resources | nindent 12 }}

bitnami/kubernetes-event-exporter/values.yaml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extraDeploy: []
5757
## @param replicaCount Desired number of pod replicas
5858
replicaCount: 1
5959
##
60-
## @param revisionHistoryLimit Desired number of old ReplicaSets to retain
60+
## @param revisionHistoryLimit Desired number of old ReplicaSets to retain
6161
## Defaults to 10, if set to 0 old ReplicaSets will be garbage-collected
6262
revisionHistoryLimit: 10
6363
##
@@ -216,6 +216,50 @@ resources:
216216
## memory: 25Mi
217217
requests: {}
218218

219+
## Configure extra options for Kubernetes event exporter container's liveness, readiness and startup probes
220+
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
221+
## @param livenessProbe.enabled Enable livenessProbe on Kubernetes event exporter container
222+
## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
223+
## @param livenessProbe.periodSeconds Period seconds for livenessProbe
224+
## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
225+
## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
226+
## @param livenessProbe.successThreshold Success threshold for livenessProbe
227+
##
228+
livenessProbe:
229+
enabled: true
230+
initialDelaySeconds: 5
231+
periodSeconds: 5
232+
timeoutSeconds: 2
233+
failureThreshold: 5
234+
successThreshold: 1
235+
## @param readinessProbe.enabled Enable readinessProbe on Kubernetes event exporter container
236+
## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
237+
## @param readinessProbe.periodSeconds Period seconds for readinessProbe
238+
## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
239+
## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
240+
## @param readinessProbe.successThreshold Success threshold for readinessProbe
241+
##
242+
readinessProbe:
243+
enabled: true
244+
initialDelaySeconds: 5
245+
periodSeconds: 5
246+
timeoutSeconds: 2
247+
failureThreshold: 1
248+
successThreshold: 1
249+
## @param startupProbe.enabled Enable startupProbe on Kubernetes event exporter container
250+
## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
251+
## @param startupProbe.periodSeconds Period seconds for startupProbe
252+
## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
253+
## @param startupProbe.failureThreshold Failure threshold for startupProbe
254+
## @param startupProbe.successThreshold Success threshold for startupProbe
255+
##
256+
startupProbe:
257+
enabled: false
258+
initialDelaySeconds: 40
259+
periodSeconds: 10
260+
timeoutSeconds: 15
261+
failureThreshold: 15
262+
successThreshold: 1
219263
## Configure extra custom startup, liveness and readiness probes
220264
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
221265
## @param customStartupProbe Configure startup probe for Kubernetes event exporter pod

0 commit comments

Comments
 (0)