Skip to content

Commit

Permalink
allow to enable/disable probes
Browse files Browse the repository at this point in the history
  • Loading branch information
kuliebiakin committed May 22, 2023
1 parent 1c1ce5b commit 5e55052
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/wp-project-skeleton/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: wp-project-skeleton
description: A Helm chart to deploy WordPress project.
type: application
version: 0.2.11
appVersion: "0.2.11"
version: 0.2.12
appVersion: "0.2.12"
dependencies:
- name: common
version: 2.x.x
Expand Down
4 changes: 4 additions & 0 deletions charts/wp-project-skeleton/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
{{- if .Values.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.livenessProbe "enabled") "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.readinessProbe "enabled") "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.nginx.resources }}
resources: {{- toYaml .Values.nginx.resources | nindent 12 }}
{{- end }}
Expand Down
4 changes: 3 additions & 1 deletion charts/wp-project-skeleton/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tolerations: []
resources:
limits:
cpu: 1
memory: 1024Mi
memory: 1Gi
requests:
cpu: 500m
memory: 256Mi
Expand Down Expand Up @@ -144,6 +144,7 @@ app:
env: []

livenessProbe:
enabled: true
httpGet:
path: /wp/wp-admin/install.php
port: http
Expand All @@ -153,6 +154,7 @@ livenessProbe:
failureThreshold: 6
successThreshold: 1
readinessProbe:
enabled: true
httpGet:
path: /wp/wp-login.php
port: http
Expand Down

0 comments on commit 5e55052

Please sign in to comment.