Skip to content

Commit

Permalink
Set up defaults for unleash-edge nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
I3uckwheat committed Oct 19, 2023
1 parent 1da0626 commit 64693e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
20 changes: 10 additions & 10 deletions charts/unleash-edge/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,23 @@ spec:
- name: http
containerPort: 3063
protocol: TCP
{{- if .Values.livenessProbe.enabled }}
{{- if .Values.livenessProbe.enabled | default true }}
livenessProbe:
httpGet:
path: {{ .Values.livenessProbe.path }}
path: {{ .Values.livenessProbe.path | default "/internal-backstage/health" }}
port: http
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 30 }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds | default 10 }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
{{- if .Values.readinessProbe.enabled | default true}}
readinessProbe:
httpGet:
path: {{ .Values.readinessProbe.path }}
path: {{ .Values.readinessProbe.path | default "/internal-backstage/health" }}
port: http
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds | default 30 }}
timeoutSeconds: {{.Values.readinessProbe.timeoutSeconds | default 10 }}
successThreshold: {{.Values.readinessProbe.successThreshold | default 5 }}
periodSeconds: {{.Values.readinessProbe.periodSeconds | default 10 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
26 changes: 13 additions & 13 deletions charts/unleash-edge/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ ingress:
# hosts:
#

livenessProbe:
enabled: true
path: /internal-backstage/health
initialDelaySeconds: 30
timeoutSeconds: 10

readinessProbe:
enabled: true
path: /internal-backstage/health
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 10
successThreshold: 5
livenessProbe: {}
# enabled: true
# path: /internal-backstage/health
# initialDelaySeconds: 30
# timeoutSeconds: 10

readinessProbe: {}
# enabled: true
# path: /internal-backstage/health
# initialDelaySeconds: 30
# timeoutSeconds: 10
# periodSeconds: 10
# successThreshold: 5

autoscaling:
enabled: false
Expand Down

0 comments on commit 64693e6

Please sign in to comment.