diff --git a/deploy/helm/hello-kubernetes/templates/deployment.yaml b/deploy/helm/hello-kubernetes/templates/deployment.yaml index 5ac16b9a..6cf6365d 100644 --- a/deploy/helm/hello-kubernetes/templates/deployment.yaml +++ b/deploy/helm/hello-kubernetes/templates/deployment.yaml @@ -25,11 +25,19 @@ spec: protocol: TCP livenessProbe: httpGet: + {{- if and .Values.ingress.configured (not .Values.ingress.rewritePath) }} + path: "/{{ .Values.ingress.pathPrefix }}" + {{- else }} path: / + {{- end }} port: http readinessProbe: httpGet: + {{- if and .Values.ingress.configured (not .Values.ingress.rewritePath) }} + path: "/{{ .Values.ingress.pathPrefix }}" + {{- else }} path: / + {{- end }} port: http env: {{- if ne (.Values.deployment.container.port | int) (8080 | int) }}