diff --git a/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet b/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet index f83601cff9e254bdaf3ddd866d46a7e3d9ea7978..bf620fc609785891caeafb979efbd7a57b13f729 100644 --- a/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet @@ -236,13 +236,21 @@ function(params) { '--tls-cipher-suites=' + std.join(',', pa._config.tlsCipherSuites), ], resources: pa._config.resources, + startupProbe: { + httpGet: { + path: '/livez', + port: 'https', + scheme: 'HTTPS', + }, + periodSeconds: 10, + failureThreshold: 18, + }, readinessProbe: { httpGet: { path: '/readyz', port: 'https', scheme: 'HTTPS', }, - initialDelaySeconds: 30, periodSeconds: 5, failureThreshold: 5, }, @@ -252,7 +260,6 @@ function(params) { port: 'https', scheme: 'HTTPS', }, - initialDelaySeconds: 30, periodSeconds: 5, failureThreshold: 5, }, diff --git a/manifests/prometheusAdapter-deployment.yaml b/manifests/prometheusAdapter-deployment.yaml index fcfdf356290eebcfe391d456c3c3a7bcea9eaae5..ac196193cc527523ac8816fe4a299dbe7e744e05 100644 --- a/manifests/prometheusAdapter-deployment.yaml +++ b/manifests/prometheusAdapter-deployment.yaml @@ -44,7 +44,6 @@ spec: path: /livez port: https scheme: HTTPS - initialDelaySeconds: 30 periodSeconds: 5 name: prometheus-adapter ports: @@ -56,7 +55,6 @@ spec: path: /readyz port: https scheme: HTTPS - initialDelaySeconds: 30 periodSeconds: 5 resources: limits: @@ -71,6 +69,13 @@ spec: drop: - ALL readOnlyRootFilesystem: true + startupProbe: + failureThreshold: 18 + httpGet: + path: /livez + port: https + scheme: HTTPS + periodSeconds: 10 volumeMounts: - mountPath: /tmp name: tmpfs