151 lines
4.2 KiB
YAML
151 lines
4.2 KiB
YAML
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: cde-api
|
|
namespace: documentations
|
|
spec:
|
|
values:
|
|
services:
|
|
cde-api:
|
|
podAnnotations:
|
|
_default:
|
|
vault.hashicorp.com/agent-inject-secret-cde-api-public-key: secrets/data/vault/common/jwt_public
|
|
vault.hashicorp.com/agent-inject-template-cde-api-public-key: '{{- with
|
|
secret "secrets/data/vault/common/jwt_public" -}}
|
|
|
|
{{ index .Data.data "public_key" }}
|
|
|
|
{{- end -}}'
|
|
deployment:
|
|
args:
|
|
_default:
|
|
- 'set -a
|
|
|
|
. /vault/secrets/cde-api-db
|
|
|
|
. /vault/secrets/cde-api-s3
|
|
|
|
. /vault/secrets/cde-api-zeebe
|
|
|
|
. /vault/secrets/cde-api-rabbitmq
|
|
|
|
. /vault/secrets/cde-api-users
|
|
|
|
CDE_API_PUBLIC_KEY="$(cat /vault/secrets/cde-api-public-key)"
|
|
|
|
set +a
|
|
|
|
exec /opt/main
|
|
|
|
'
|
|
---
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: documentations-api
|
|
namespace: documentations
|
|
spec:
|
|
values:
|
|
services:
|
|
backend:
|
|
podAnnotations:
|
|
_default:
|
|
vault.hashicorp.com/agent-inject-secret-documentations-rsa-public: secrets/data/vault/common/jwt_public
|
|
vault.hashicorp.com/agent-inject-template-documentations-rsa-public: '{{-
|
|
with secret "secrets/data/vault/common/jwt_public" -}}
|
|
|
|
{{ index .Data.data "public_key" }}
|
|
|
|
{{- end -}}'
|
|
deployment:
|
|
args:
|
|
_default:
|
|
- 'set -a
|
|
|
|
[ -f /vault/secrets/documentations-postgresql ] && . /vault/secrets/documentations-postgresql
|
|
|
|
[ -f /vault/secrets/documentations-common ] && . /vault/secrets/documentations-common
|
|
|
|
[ -f /vault/secrets/documentations-marks-rabbitmq ] && . /vault/secrets/documentations-marks-rabbitmq
|
|
|
|
[ -f /vault/secrets/documentations-rsa-public ] && export PUBLIC_KEY="$(cat
|
|
/vault/secrets/documentations-rsa-public)"
|
|
|
|
set +a
|
|
|
|
exec /app/entrypoint.sh
|
|
|
|
'
|
|
---
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: documentations-filestream
|
|
namespace: documentations
|
|
spec:
|
|
values:
|
|
services:
|
|
backend:
|
|
podAnnotations:
|
|
_default:
|
|
vault.hashicorp.com/agent-inject-secret-documentations-rsa-public: secrets/data/vault/common/jwt_public
|
|
vault.hashicorp.com/agent-inject-template-documentations-rsa-public: '{{-
|
|
with secret "secrets/data/vault/common/jwt_public" -}}
|
|
|
|
{{ index .Data.data "public_key" }}
|
|
|
|
{{- end -}}'
|
|
deployment:
|
|
args:
|
|
_default:
|
|
- 'set -a
|
|
|
|
[ -f /vault/secrets/documentations-postgresql ] && . /vault/secrets/documentations-postgresql
|
|
|
|
[ -f /vault/secrets/documentations-common ] && . /vault/secrets/documentations-common
|
|
|
|
[ -f /vault/secrets/documentations-rsa-public ] && export PUBLIC_KEY="$(cat
|
|
/vault/secrets/documentations-rsa-public)"
|
|
|
|
set +a
|
|
|
|
exec /app/file_entrypoint.sh
|
|
|
|
'
|
|
---
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: pdm-api
|
|
namespace: documentations
|
|
spec:
|
|
values:
|
|
services:
|
|
backend:
|
|
podAnnotations:
|
|
_default:
|
|
vault.hashicorp.com/agent-inject-secret-documentations-rsa-public: secrets/data/vault/common/jwt_public
|
|
vault.hashicorp.com/agent-inject-template-documentations-rsa-public: '{{-
|
|
with secret "secrets/data/vault/common/jwt_public" -}}
|
|
|
|
{{ index .Data.data "public_key" }}
|
|
|
|
{{- end -}}'
|
|
deployment:
|
|
args:
|
|
_default:
|
|
- 'set -a
|
|
|
|
[ -f /vault/secrets/documentations-postgresql ] && . /vault/secrets/documentations-postgresql
|
|
|
|
[ -f /vault/secrets/documentations-common ] && . /vault/secrets/documentations-common
|
|
|
|
[ -f /vault/secrets/documentations-rsa-public ] && export PUBLIC_KEY="$(cat
|
|
/vault/secrets/documentations-rsa-public)"
|
|
|
|
set +a
|
|
|
|
exec ./httpserver
|
|
|
|
'
|