Merge "Add livenessProbe and change path in probe"

This commit is contained in:
Zuul 2024-11-15 18:34:11 +00:00 committed by Gerrit Code Review
commit 83b14006a7
4 changed files with 13 additions and 2 deletions

View File

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

View File

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

View File

@ -295,6 +295,7 @@ conf:
use: egg:Paste#urlmap use: egg:Paste#urlmap
/: barbican_version /: barbican_version
/v1: barbican-api-keystone /v1: barbican-api-keystone
/healthcheck: healthcheck
pipeline:barbican_version: pipeline:barbican_version:
pipeline: cors http_proxy_to_wsgi versionapp pipeline: cors http_proxy_to_wsgi versionapp
pipeline:barbican_api: pipeline:barbican_api:
@ -309,6 +310,10 @@ conf:
paste.app_factory: barbican.api.app:create_main_app paste.app_factory: barbican.api.app:create_main_app
app:versionapp: app:versionapp:
paste.app_factory: barbican.api.app:create_version_app 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: filter:simple:
paste.filter_factory: barbican.api.middleware.simple:SimpleFilter.factory paste.filter_factory: barbican.api.middleware.simple:SimpleFilter.factory
filter:unauthenticated-context: filter:unauthenticated-context:

View File

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