add probes

Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>
This commit is contained in:
Christian Kotzbauer 2022-03-20 10:06:58 +01:00
parent cadd1eb1d8
commit a396799d64
2 changed files with 15 additions and 1 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2 apiVersion: v2
description: Catalogue all images of a Kubernetes cluster to multiple targets with Syft description: Catalogue all images of a Kubernetes cluster to multiple targets with Syft
name: sbom-operator name: sbom-operator
version: 0.7.0 version: 0.7.1
appVersion: 0.7.0 appVersion: 0.7.0
home: https://github.com/ckotzbauer/sbom-operator home: https://github.com/ckotzbauer/sbom-operator
sources: sources:

View File

@ -38,6 +38,20 @@ spec:
{{ toYaml .Values.securityContext | indent 12 }} {{ toYaml .Values.securityContext | indent 12 }}
resources: resources:
{{ toYaml .Values.resources | indent 12 }} {{ 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: volumeMounts:
- mountPath: /work - mountPath: /work
name: work name: work