From 64693e66e0eda4d3c4f0b07f0a42ada37cca5f0c Mon Sep 17 00:00:00 2001 From: Briggs Elsperger Date: Thu, 19 Oct 2023 09:05:51 -0600 Subject: [PATCH] Set up defaults for unleash-edge nodes --- charts/unleash-edge/templates/deployment.yaml | 20 +++++++------- charts/unleash-edge/values.yaml | 26 +++++++++---------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/charts/unleash-edge/templates/deployment.yaml b/charts/unleash-edge/templates/deployment.yaml index 5227a48..b4e93f4 100644 --- a/charts/unleash-edge/templates/deployment.yaml +++ b/charts/unleash-edge/templates/deployment.yaml @@ -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 }} diff --git a/charts/unleash-edge/values.yaml b/charts/unleash-edge/values.yaml index f090bb4..e53f457 100644 --- a/charts/unleash-edge/values.yaml +++ b/charts/unleash-edge/values.yaml @@ -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