activate health endpoints
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Trabelsi 2022-09-09 23:07:01 +02:00
parent 68ba68fb46
commit c33f80b448
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
3 changed files with 6 additions and 6 deletions

View File

@ -29,5 +29,5 @@ USER bw-operator
RUN set -eux; \ RUN set -eux; \
pip install -r requirements.txt 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" ] CMD [ "/home/bw-operator/bitwarden-crd-operator.py" ]

View File

@ -39,15 +39,15 @@ spec:
{{- end }} {{- end }}
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 8080
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /healthz
port: http port: http
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / path: /healthz
port: http port: http
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}

View File

@ -6,9 +6,9 @@ replicaCount: 1
image: image:
repository: lerentis/bitwarden-crd-operator repository: lerentis/bitwarden-crd-operator
pullPolicy: Always pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "latest" tag: "68ba68fb46c48c61e484de7ea5c19d1f14dec915"
imagePullSecrets: [] imagePullSecrets: []
nameOverride: "" nameOverride: ""