Skip to content

Commit

Permalink
#10 - fix helm3 kubernetes liveness and readiness checks rebooting co…
Browse files Browse the repository at this point in the history
…ntainer
  • Loading branch information
obriensystems committed Sep 21, 2021
1 parent d58d3e5 commit 99197c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions reference-helm/reference-nbi/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
path: /nbi/api
port: http
readinessProbe:
httpGet:
path: /
path: /nbi/api
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
3 changes: 2 additions & 1 deletion reference-helm/reference-nbi/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "reference-nbi.fullname" . }}

labels:
{{ include "reference-nbi.labels" . | indent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down

0 comments on commit 99197c8

Please sign in to comment.