Merge pull request #1696 from JoaoBraveCoding/2048333

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

View File

@@ -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 },