Merge "glance-api+neutron-server: add raise_for_status method call to livenessProbe"
This commit is contained in:
@@ -20,7 +20,7 @@ exec:
|
||||
command:
|
||||
- python
|
||||
- -c
|
||||
- "import requests; requests.get('http://127.0.0.1:{{ $health_port }}{{ $health_path }}')"
|
||||
- "import requests; r = requests.get('http://127.0.0.1:{{ $health_port }}{{ $health_path }}'); r.raise_for_status()"
|
||||
{{- else }}
|
||||
httpGet:
|
||||
path: {{ $health_path }}
|
||||
|
||||
@@ -18,7 +18,7 @@ exec:
|
||||
command:
|
||||
- python
|
||||
- -c
|
||||
- "import requests; requests.get('http://127.0.0.1:{{ tuple "network" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}')"
|
||||
- "import requests; r = requests.get('http://127.0.0.1:{{ tuple "network" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}'); r.raise_for_status()"
|
||||
initialDelaySeconds: 30
|
||||
{{- else }}
|
||||
httpGet:
|
||||
@@ -33,7 +33,7 @@ exec:
|
||||
command:
|
||||
- python
|
||||
- -c
|
||||
- "import requests; requests.get('http://127.0.0.1:{{ tuple "network" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}')"
|
||||
- "import requests; r = requests.get('http://127.0.0.1:{{ tuple "network" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}'); r.raise_for_status()"
|
||||
initialDelaySeconds: 30
|
||||
{{- else }}
|
||||
httpGet:
|
||||
|
||||
6
releasenotes/notes/glance-cb814fab2bccc95e.yaml
Normal file
6
releasenotes/notes/glance-cb814fab2bccc95e.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
glance:
|
||||
- |
|
||||
add raise_for_status method call to the livenessProbe command to properly
|
||||
raise an error when return code is 4xx (client error) or 5xx (server error)
|
||||
...
|
||||
6
releasenotes/notes/neutron-3c11cf48f8c7c592.yaml
Normal file
6
releasenotes/notes/neutron-3c11cf48f8c7c592.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
neutron:
|
||||
- |
|
||||
add raise_for_status method call to the livenessProbe command to properly
|
||||
raise an error when return code is 4xx (client error) or 5xx (server error)
|
||||
...
|
||||
Reference in New Issue
Block a user