Merge pull request #1696 from JoaoBraveCoding/2048333

Adds readinessProbe and livenessProbe to prometheus-adapter jsonnet
This commit is contained in:
Philip Gough authored and GitHub committed 2022-03-30 09:18:11 +01:00
commit 6f7a799b78
2 files changed
+36

No files matched your search

@@ -220,6 +220,26 @@ function(params) {
'--tls-cipher-suites=' + std.join(',', pa._config.tlsCipherSuites),
],
resources: pa._config.resources,
readinessProbe: {
httpGet: {
path: '/readyz',
port: 'https',
scheme: 'HTTPS',
},
initialDelaySeconds: 30,
periodSeconds: 5,
failureThreshold: 5,
},
livenessProbe: {
httpGet: {
path: '/livez',
port: 'https',
scheme: 'HTTPS',
},
initialDelaySeconds: 30,
periodSeconds: 5,
failureThreshold: 5,
},
ports: [{ containerPort: 6443 }],
volumeMounts: [
{ name: 'tmpfs', mountPath: '/tmp', readOnly: false },