Skip to content

Commit

Permalink
[EPMDEDP-12438]: chore: Move livenessProbe/readinessProbe to values.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Sergiy Kulanov <[email protected]>
Change-Id: I504720b2eaa90ff7b762ea99f480f0827350fb42
  • Loading branch information
SergK committed Aug 11, 2023
1 parent d4bb10c commit 4a7d039
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 14 deletions.
12 changes: 12 additions & 0 deletions deploy-templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,22 @@ A Helm chart for EDP Headlamp
| imagePullSecrets | list | `[]` | An optional list of references to secrets in the same namespace to use for pulling any of the images used |
| ingress.annotations | object | `{}` | Annotations for Ingress resource |
| ingress.tls | list | `[]` | Ingress TLS configuration |
| livenessProbe.failureThreshold | int | `5` | |
| livenessProbe.initialDelaySeconds | int | `5` | |
| livenessProbe.periodSeconds | int | `20` | |
| livenessProbe.successThreshold | int | `1` | |
| livenessProbe.tcpSocket.port | int | `4466` | |
| livenessProbe.timeoutSeconds | int | `1` | |
| nameOverride | string | `""` | Overrides the name of the chart |
| nodeSelector | object | `{}` | Node labels for pod assignment |
| podAnnotations | object | `{}` | Annotations to add to the pod |
| podSecurityContext | object | `{}` | Headlamp pods' Security Context |
| readinessProbe.failureThreshold | int | `5` | |
| readinessProbe.initialDelaySeconds | int | `5` | |
| readinessProbe.periodSeconds | int | `20` | |
| readinessProbe.successThreshold | int | `1` | |
| readinessProbe.tcpSocket.port | int | `4466` | |
| readinessProbe.timeoutSeconds | int | `1` | |
| replicaCount | int | `1` | Number of desired pods |
| resources | object | `{}` | CPU/Memory resource requests/limits |
| securityContext | object | `{}` | Headlamp containers Security Context |
Expand Down
20 changes: 6 additions & 14 deletions deploy-templates/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,14 @@ spec:
- name: http
containerPort: 4466
protocol: TCP
{{- if .Values.livenessProbe }}
livenessProbe:
tcpSocket:
port: 4466
initialDelaySeconds: 20
timeoutSeconds: 1
periodSeconds: 20
successThreshold: 1
failureThreshold: 5
{{ toYaml .Values.livenessProbe | indent 12 }}
{{- end }}
{{- if .Values.readinessProbe }}
readinessProbe:
tcpSocket:
port: 4466
initialDelaySeconds: 20
timeoutSeconds: 1
periodSeconds: 20
successThreshold: 1
failureThreshold: 5
{{ toYaml .Values.readinessProbe | indent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
17 changes: 17 additions & 0 deletions deploy-templates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,23 @@ serviceAccount:
# -- The name of the service account to use.(If not set and create is true, a name is generated using the fullname template)
name: ""

livenessProbe:
tcpSocket:
port: 4466
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 20
successThreshold: 1
failureThreshold: 5
readinessProbe:
tcpSocket:
port: 4466
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 20
successThreshold: 1
failureThreshold: 5

# -- Annotations to add to the pod
podAnnotations: {}

Expand Down

0 comments on commit 4a7d039

Please sign in to comment.