From a396799d6486cfc8ca422844322df6f8a5ee694c Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Sun, 20 Mar 2022 10:06:58 +0100 Subject: [PATCH] add probes Signed-off-by: Christian Kotzbauer --- charts/sbom-operator/Chart.yaml | 2 +- charts/sbom-operator/templates/deployment.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/charts/sbom-operator/Chart.yaml b/charts/sbom-operator/Chart.yaml index 41ad164..89ed7a7 100644 --- a/charts/sbom-operator/Chart.yaml +++ b/charts/sbom-operator/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Catalogue all images of a Kubernetes cluster to multiple targets with Syft name: sbom-operator -version: 0.7.0 +version: 0.7.1 appVersion: 0.7.0 home: https://github.com/ckotzbauer/sbom-operator sources: diff --git a/charts/sbom-operator/templates/deployment.yaml b/charts/sbom-operator/templates/deployment.yaml index e002025..c452a62 100644 --- a/charts/sbom-operator/templates/deployment.yaml +++ b/charts/sbom-operator/templates/deployment.yaml @@ -38,6 +38,20 @@ spec: {{ toYaml .Values.securityContext | indent 12 }} resources: {{ toYaml .Values.resources | indent 12 }} + ports: + - containerPort: 8080 + name: http + protocol: TCP + livenessProbe: + timeoutSeconds: 3 + httpGet: + path: "/health" + port: http + readinessProbe: + timeoutSeconds: 3 + httpGet: + path: "/health" + port: http volumeMounts: - mountPath: /work name: work