Skip to content

Commit ff6e93b

Browse files
authored
Merge pull request #8346 from jklaw90/readiness-prob
fix: VPA add readiness and liveness for vpa admission
2 parents 3d74804 + 1938d39 commit ff6e93b

File tree

5 files changed

+75
-0
lines changed

5 files changed

+75
-0
lines changed

vertical-pod-autoscaler/deploy/admission-controller-deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@ spec:
4343
- containerPort: 8000
4444
- name: prometheus
4545
containerPort: 8944
46+
livenessProbe:
47+
httpGet:
48+
path: /health-check
49+
port: prometheus
50+
scheme: HTTP
51+
initialDelaySeconds: 5
52+
periodSeconds: 10
53+
failureThreshold: 3
54+
readinessProbe:
55+
httpGet:
56+
path: /health-check
57+
port: prometheus
58+
scheme: HTTP
59+
periodSeconds: 10
60+
failureThreshold: 3
4661
volumes:
4762
- name: tls-certs
4863
secret:

vertical-pod-autoscaler/deploy/recommender-deployment-high.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,18 @@ spec:
4141
ports:
4242
- name: prometheus
4343
containerPort: 8942
44+
livenessProbe:
45+
httpGet:
46+
path: /health-check
47+
port: prometheus
48+
scheme: HTTP
49+
initialDelaySeconds: 5
50+
periodSeconds: 10
51+
failureThreshold: 3
52+
readinessProbe:
53+
httpGet:
54+
path: /health-check
55+
port: prometheus
56+
scheme: HTTP
57+
periodSeconds: 10
58+
failureThreshold: 3

vertical-pod-autoscaler/deploy/recommender-deployment-low.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,18 @@ spec:
4141
ports:
4242
- name: prometheus
4343
containerPort: 8942
44+
livenessProbe:
45+
httpGet:
46+
path: /health-check
47+
port: prometheus
48+
scheme: HTTP
49+
initialDelaySeconds: 5
50+
periodSeconds: 10
51+
failureThreshold: 3
52+
readinessProbe:
53+
httpGet:
54+
path: /health-check
55+
port: prometheus
56+
scheme: HTTP
57+
periodSeconds: 10
58+
failureThreshold: 3

vertical-pod-autoscaler/deploy/recommender-deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,18 @@ spec:
3232
ports:
3333
- name: prometheus
3434
containerPort: 8942
35+
livenessProbe:
36+
httpGet:
37+
path: /health-check
38+
port: prometheus
39+
scheme: HTTP
40+
initialDelaySeconds: 5
41+
periodSeconds: 10
42+
failureThreshold: 3
43+
readinessProbe:
44+
httpGet:
45+
path: /health-check
46+
port: prometheus
47+
scheme: HTTP
48+
periodSeconds: 10
49+
failureThreshold: 3

vertical-pod-autoscaler/deploy/updater-deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,18 @@ spec:
3737
ports:
3838
- name: prometheus
3939
containerPort: 8943
40+
livenessProbe:
41+
httpGet:
42+
path: /health-check
43+
port: prometheus
44+
scheme: HTTP
45+
initialDelaySeconds: 5
46+
periodSeconds: 10
47+
failureThreshold: 3
48+
readinessProbe:
49+
httpGet:
50+
path: /health-check
51+
port: prometheus
52+
scheme: HTTP
53+
periodSeconds: 10
54+
failureThreshold: 3

0 commit comments

Comments
 (0)