Skip to content

Commit 085d520

Browse files
authored
Merge pull request #8 from HomeDevopsLab/liveness-probes
version 2.4.0
2 parents e36251c + 752f6ef commit 085d520

5 files changed

Lines changed: 31 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [2.4.0] - 2024-08-24
4+
5+
### Added
6+
7+
- livenessProbe (tcp)
8+
- tolerations: wait 10s when node is unavaialble
9+
310
## [2.3.0] - 2024-08-05
411

512
### Changed

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.3.0
18+
version: 2.4.0
1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to
2121
# follow Semantic Versioning. They should reflect the version the application is using.

chart/templates/deployment.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,24 @@ spec:
6969
failureThreshold: 30
7070
periodSeconds: 10
7171
{{- end }}
72+
{{- if .Values.livenessProbe }}
73+
livenessProbe:
74+
tcpSocket:
75+
port: {{ .Values.livenessProbe.port }}
76+
initialDelaySeconds: 10
77+
periodSeconds: 2
78+
{{- end }}
79+
{{- if .Values.livenessProbe }}
80+
tolerations:
81+
- key: "node.kubernetes.io/unreachable"
82+
operator: "Exists"
83+
effect: "NoExecute"
84+
tolerationSeconds: 10
85+
- key: "node.kubernetes.io/not-ready"
86+
operator: "Exists"
87+
effect: "NoExecute"
88+
tolerationSeconds: 10
89+
{{- end }}
7290
{{ if .Values.image.registrySecret }}
7391
imagePullSecrets:
7492
- name: {{ .Values.image.registrySecret }}

chart/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ metadata:
99
namespace: default
1010
spec:
1111
type: {{ .type }}
12+
{{- if .loadBalancerIP }}
13+
loadBalancerIP: {{ .loadBalancerIP }}
14+
{{- end }}
1215
ports:
1316
- name: {{ .name }}
1417
protocol: {{ .protocol }}

chart/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ startupProbes:
3636
deployNotifications:
3737
enabled: false
3838
image: ""
39-
nodeSelector: {}
39+
nodeSelector: {}
40+
livenessProbe: {}

0 commit comments

Comments
 (0)