diff --git a/charts/steadybit-extension-http/Chart.yaml b/charts/steadybit-extension-http/Chart.yaml index a9e2d06..cf3784c 100644 --- a/charts/steadybit-extension-http/Chart.yaml +++ b/charts/steadybit-extension-http/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: steadybit-extension-http description: Steadybit action implementation to check HTTP endpoints. -version: 1.0.20 +version: 1.0.21 appVersion: latest home: https://www.steadybit.com/ icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png diff --git a/charts/steadybit-extension-http/templates/deployment.yaml b/charts/steadybit-extension-http/templates/deployment.yaml index c8b0d74..c4c9bd1 100644 --- a/charts/steadybit-extension-http/templates/deployment.yaml +++ b/charts/steadybit-extension-http/templates/deployment.yaml @@ -59,10 +59,20 @@ spec: volumeMounts: {{- include "extensionlib.deployment.volumeMounts" (list .) | nindent 12 }} livenessProbe: + initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }} + periodSeconds: {{ .Values.probes.liveness.periodSeconds }} + timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }} + successThreshold: {{ .Values.probes.liveness.successThreshold }} + failureThreshold: {{ .Values.probes.liveness.failureThreshold }} httpGet: path: /health/liveness port: 8081 readinessProbe: + initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }} + periodSeconds: {{ .Values.probes.readiness.periodSeconds }} + timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }} + successThreshold: {{ .Values.probes.readiness.successThreshold }} + failureThreshold: {{ .Values.probes.readiness.failureThreshold }} httpGet: path: /health/readiness port: 8081 diff --git a/charts/steadybit-extension-http/tests/__snapshot__/deployment_test.yaml.snap b/charts/steadybit-extension-http/tests/__snapshot__/deployment_test.yaml.snap index dccc18c..c0a1eb5 100644 --- a/charts/steadybit-extension-http/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/steadybit-extension-http/tests/__snapshot__/deployment_test.yaml.snap @@ -34,14 +34,24 @@ manifest should match snapshot using podAnnotations and Labels: image: ghcr.io/steadybit/extension-http:latest imagePullPolicy: Always livenessProbe: + failureThreshold: 5 httpGet: path: /health/liveness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: extension readinessProbe: + failureThreshold: 3 httpGet: path: /health/readiness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 resources: limits: cpu: 200m @@ -99,14 +109,24 @@ manifest should match snapshot with TLS: image: ghcr.io/steadybit/extension-http:latest imagePullPolicy: Always livenessProbe: + failureThreshold: 5 httpGet: path: /health/liveness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: extension readinessProbe: + failureThreshold: 3 httpGet: path: /health/readiness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 resources: limits: cpu: 200m @@ -174,14 +194,24 @@ manifest should match snapshot with extra env vars: image: ghcr.io/steadybit/extension-http:latest imagePullPolicy: Always livenessProbe: + failureThreshold: 5 httpGet: path: /health/liveness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: extension readinessProbe: + failureThreshold: 3 httpGet: path: /health/readiness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 resources: limits: cpu: 200m @@ -237,14 +267,24 @@ manifest should match snapshot with extra labels: image: ghcr.io/steadybit/extension-http:latest imagePullPolicy: Always livenessProbe: + failureThreshold: 5 httpGet: path: /health/liveness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: extension readinessProbe: + failureThreshold: 3 httpGet: path: /health/readiness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 resources: limits: cpu: 200m @@ -304,14 +344,24 @@ manifest should match snapshot with mutual TLS: image: ghcr.io/steadybit/extension-http:latest imagePullPolicy: Always livenessProbe: + failureThreshold: 5 httpGet: path: /health/liveness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: extension readinessProbe: + failureThreshold: 3 httpGet: path: /health/readiness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 resources: limits: cpu: 200m @@ -385,14 +435,24 @@ manifest should match snapshot with mutual TLS using containerPaths: image: ghcr.io/steadybit/extension-http:latest imagePullPolicy: Always livenessProbe: + failureThreshold: 5 httpGet: path: /health/liveness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: extension readinessProbe: + failureThreshold: 3 httpGet: path: /health/readiness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 resources: limits: cpu: 200m @@ -446,14 +506,24 @@ manifest should match snapshot with podSecurityContext: image: ghcr.io/steadybit/extension-http:latest imagePullPolicy: Always livenessProbe: + failureThreshold: 5 httpGet: path: /health/liveness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: extension readinessProbe: + failureThreshold: 3 httpGet: path: /health/readiness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 resources: limits: cpu: 200m @@ -509,14 +579,24 @@ manifest should match snapshot with priority class: image: ghcr.io/steadybit/extension-http:latest imagePullPolicy: Always livenessProbe: + failureThreshold: 5 httpGet: path: /health/liveness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: extension readinessProbe: + failureThreshold: 3 httpGet: path: /health/readiness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 resources: limits: cpu: 200m @@ -571,14 +651,24 @@ manifest should match snapshot without TLS: image: ghcr.io/steadybit/extension-http:latest imagePullPolicy: Always livenessProbe: + failureThreshold: 5 httpGet: path: /health/liveness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 name: extension readinessProbe: + failureThreshold: 3 httpGet: path: /health/readiness port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 resources: limits: cpu: 200m diff --git a/charts/steadybit-extension-http/values.yaml b/charts/steadybit-extension-http/values.yaml index 04fa0b9..574a71d 100644 --- a/charts/steadybit-extension-http/values.yaml +++ b/charts/steadybit-extension-http/values.yaml @@ -36,6 +36,22 @@ logging: # logging.format -- The format of the log entries. One of text, json format: text +probes: + # probes.readiness.* -- Configuration of the Kubernetes readiness probe + readiness: + initialDelaySeconds: 10 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + successThreshold: 1 + # probes.liveness.* -- Configuration of the Kubernetes liveness probe + liveness: + initialDelaySeconds: 10 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 5 + successThreshold: 1 + resources: requests: # resources.requests.memory -- The minimal amount of memory needed