Merge pull request #1790 from JoaoBraveCoding/add-liveness
cheery-pick: Adds readinessProbe and livenessProbe to prometheus-adapter jsonnet
This commit is contained in:
@@ -220,7 +220,27 @@ function(params) {
|
|||||||
'--tls-cipher-suites=' + std.join(',', pa._config.tlsCipherSuites),
|
'--tls-cipher-suites=' + std.join(',', pa._config.tlsCipherSuites),
|
||||||
],
|
],
|
||||||
resources: pa._config.resources,
|
resources: pa._config.resources,
|
||||||
ports: [{ containerPort: 6443 }],
|
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, name: 'https' }],
|
||||||
volumeMounts: [
|
volumeMounts: [
|
||||||
{ name: 'tmpfs', mountPath: '/tmp', readOnly: false },
|
{ name: 'tmpfs', mountPath: '/tmp', readOnly: false },
|
||||||
{ name: 'volume-serving-cert', mountPath: '/var/run/serving-cert', readOnly: false },
|
{ name: 'volume-serving-cert', mountPath: '/var/run/serving-cert', readOnly: false },
|
||||||
|
|||||||
@@ -37,9 +37,26 @@ spec:
|
|||||||
- --secure-port=6443
|
- --secure-port=6443
|
||||||
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA
|
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA
|
||||||
image: k8s.gcr.io/prometheus-adapter/prometheus-adapter:v0.9.1
|
image: k8s.gcr.io/prometheus-adapter/prometheus-adapter:v0.9.1
|
||||||
|
livenessProbe:
|
||||||
|
failureThreshold: 5
|
||||||
|
httpGet:
|
||||||
|
path: /livez
|
||||||
|
port: https
|
||||||
|
scheme: HTTPS
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 5
|
||||||
name: prometheus-adapter
|
name: prometheus-adapter
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 6443
|
- containerPort: 6443
|
||||||
|
name: https
|
||||||
|
readinessProbe:
|
||||||
|
failureThreshold: 5
|
||||||
|
httpGet:
|
||||||
|
path: /readyz
|
||||||
|
port: https
|
||||||
|
scheme: HTTPS
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 5
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
|
|||||||
Reference in New Issue
Block a user