diff --git a/charts/unichart/Chart.yaml b/charts/unichart/Chart.yaml index ffb322a..494e002 100644 --- a/charts/unichart/Chart.yaml +++ b/charts/unichart/Chart.yaml @@ -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 diff --git a/charts/unichart/templates/deployment-nginx.yaml b/charts/unichart/templates/deployment-nginx.yaml index 742dba9..5bfa511 100644 --- a/charts/unichart/templates/deployment-nginx.yaml +++ b/charts/unichart/templates/deployment-nginx.yaml @@ -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 }} @@ -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 }}