Add livenessProbe and change path in probe

* Add livenessProbe to deployment-api
* Change path to /healthcheck in livenessProbe, readinessProbe
* Add healthcheck in api-paste.ini

story: 2011250
task: 51236
Change-Id: I8212af42eedb65a74edc910a2cfa1f7b4eb81bbb
This commit is contained in:
chung00-lee 2024-10-30 23:55:41 +09:00
parent 8e5ad85fd0
commit c3ad002e71
4 changed files with 13 additions and 2 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Barbican
name: barbican
version: 0.3.15
version: 0.3.16
home: https://docs.openstack.org/barbican/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Barbican/OpenStack_Project_Barbican_vertical.png
sources:

View File

@ -79,10 +79,15 @@ spec:
ports:
- name: b-api
containerPort: {{ tuple "key_manager" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
livenessProbe:
httpGet:
scheme: HTTP
path: /healthcheck
port: {{ tuple "key_manager" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
readinessProbe:
httpGet:
scheme: HTTP
path: /
path: /healthcheck
port: {{ tuple "key_manager" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
volumeMounts:
- name: pod-tmp

View File

@ -295,6 +295,7 @@ conf:
use: egg:Paste#urlmap
/: barbican_version
/v1: barbican-api-keystone
/healthcheck: healthcheck
pipeline:barbican_version:
pipeline: cors http_proxy_to_wsgi versionapp
pipeline:barbican_api:
@ -309,6 +310,10 @@ conf:
paste.app_factory: barbican.api.app:create_main_app
app:versionapp:
paste.app_factory: barbican.api.app:create_version_app
app:healthcheck:
paste.app_factory: oslo_middleware:Healthcheck.app_factory
backends: disable_by_file
disable_by_file_path: /etc/barbican/healthcheck_disable
filter:simple:
paste.filter_factory: barbican.api.middleware.simple:SimpleFilter.factory
filter:unauthenticated-context:

View File

@ -39,4 +39,5 @@ barbican:
- 0.3.13 Sync uWSGI config to other services
- 0.3.14 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
- 0.3.15 Add 2024.2 Ubuntu Jammy overrides
- 0.3.16 Add livenessProbe and change path in probe
...