From 1d46f7ece964fc8311279e83c8ce8352b3288e6f Mon Sep 17 00:00:00 2001 From: Joao Marcal Date: Wed, 30 Mar 2022 14:01:48 +0100 Subject: [PATCH 1/2] Adds port name to prometheus-adapter jsonnet --- jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet b/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet index 4a4d6850..8ff8b3a5 100644 --- a/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet @@ -240,7 +240,7 @@ function(params) { periodSeconds: 5, failureThreshold: 5, }, - ports: [{ containerPort: 6443 }], + ports: [{ containerPort: 6443, name: 'https' }], volumeMounts: [ { name: 'tmpfs', mountPath: '/tmp', readOnly: false }, { name: 'volume-serving-cert', mountPath: '/var/run/serving-cert', readOnly: false }, From cf36ffb33504d295198a4f2f4e637779f484328f Mon Sep 17 00:00:00 2001 From: Joao Marcal Date: Wed, 30 Mar 2022 15:35:36 +0100 Subject: [PATCH 2/2] Adds YAML for jsonnet modified for prometheus-adapter --- manifests/prometheusAdapter-deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/prometheusAdapter-deployment.yaml b/manifests/prometheusAdapter-deployment.yaml index 9ff5a333..003c6e45 100644 --- a/manifests/prometheusAdapter-deployment.yaml +++ b/manifests/prometheusAdapter-deployment.yaml @@ -49,6 +49,7 @@ spec: name: prometheus-adapter ports: - containerPort: 6443 + name: https readinessProbe: failureThreshold: 5 httpGet: