Skip to content

Commit

Permalink
feat: update nginx deployment livenessProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
Shabahang committed Jun 11, 2024
1 parent 6a9e95f commit a256bac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/unichart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.15
version: 0.1.16

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
19 changes: 10 additions & 9 deletions charts/unichart/templates/deployment-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml $.Values.securityContext | nindent 12 }}
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default .Chart.AppVersion }}"
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default "latest" }}"
imagePullPolicy: {{ $.Values.image.pullPolicy }}
env:
{{- range $.Values.envs }}
Expand All @@ -61,16 +61,17 @@ spec:
preStop:
exec:
command: ["/bin/sh", "-c", "/bin/sleep 1; kill -QUIT 1"]
readinessProbe:
exec:
command: ["/bin/sh", "-c", "/bin/ps -ef | grep java | grep -v grep"]
initialDelaySeconds: 30
periodSeconds: 3
livenessProbe:
exec:
command: ["/bin/sh", "-c", "/bin/ps -ef | grep java | grep -v grep"]
initialDelaySeconds: 120
httpGet:
path: /
port: 80
httpHeaders:
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /ready
port: 80
resources:
{{- toYaml $.Values.resources | nindent 12 }}
{{- range $.Values.mounts.emptyDir }}
Expand Down

0 comments on commit a256bac

Please sign in to comment.