From c33f80b448e0a7098eb075811108256ed52e5b21 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Fri, 9 Sep 2022 23:07:01 +0200 Subject: [PATCH] activate health endpoints --- Dockerfile | 2 +- chart/bitwarden-crd-operator/templates/deployment.yaml | 6 +++--- chart/bitwarden-crd-operator/values.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index eafc9f8..c93d8fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,5 +29,5 @@ USER bw-operator RUN set -eux; \ pip install -r requirements.txt -ENTRYPOINT [ "/home/bw-operator/.local/bin/kopf", "run" ] +ENTRYPOINT [ "/home/bw-operator/.local/bin/kopf", "run", "--liveness=http://0.0.0.0:8080/healthz" ] CMD [ "/home/bw-operator/bitwarden-crd-operator.py" ] diff --git a/chart/bitwarden-crd-operator/templates/deployment.yaml b/chart/bitwarden-crd-operator/templates/deployment.yaml index b2c6a32..77d45a7 100644 --- a/chart/bitwarden-crd-operator/templates/deployment.yaml +++ b/chart/bitwarden-crd-operator/templates/deployment.yaml @@ -39,15 +39,15 @@ spec: {{- end }} ports: - name: http - containerPort: 80 + containerPort: 8080 protocol: TCP livenessProbe: httpGet: - path: / + path: /healthz port: http readinessProbe: httpGet: - path: / + path: /healthz port: http resources: {{- toYaml .Values.resources | nindent 12 }} diff --git a/chart/bitwarden-crd-operator/values.yaml b/chart/bitwarden-crd-operator/values.yaml index 462b064..ddeb976 100644 --- a/chart/bitwarden-crd-operator/values.yaml +++ b/chart/bitwarden-crd-operator/values.yaml @@ -6,9 +6,9 @@ replicaCount: 1 image: repository: lerentis/bitwarden-crd-operator - pullPolicy: Always + pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "latest" + tag: "68ba68fb46c48c61e484de7ea5c19d1f14dec915" imagePullSecrets: [] nameOverride: ""