From 85474599bd4f41ce6d8f82b3d97c9a6d541f8660 Mon Sep 17 00:00:00 2001 From: Henning Sudbrock Date: Thu, 12 Oct 2023 13:51:46 +0200 Subject: [PATCH] feat: explicitly specify containerPort in helm chart Specifying the containerPort, on the one hand, has a documentary purpose, by making explicit which ports are exposed by the container. On the other hand, it permits the usage of other tools that rely on the containerPort, like PodMonitors from the prometheus operator. Fix #1305 --- helm/Chart.yaml | 4 ++-- helm/templates/deployment.yaml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 7ff703d3a..f05697d46 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: connaisseur description: Helm chart for Connaisseur - a Kubernetes admission controller to integrate container image signature verification and trust pinning into a cluster. type: application -version: 2.1.0 -appVersion: 3.1.1 +version: 2.2.0 +appVersion: 3.2.0 keywords: - container image - signature diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 947e242b3..c39542884 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -33,6 +33,9 @@ spec: - name: {{ .Chart.Name }} image: "{{ .Values.kubernetes.deployment.image.repository }}:{{ default (print "v" .Chart.AppVersion) .Values.kubernetes.deployment.image.tag }}" imagePullPolicy: {{ .Values.kubernetes.deployment.imagePullPolicy }} + ports: + - containerPort: 5000 + protocol: TCP livenessProbe: httpGet: path: /health