69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: backend
|
|
namespace: eav
|
|
spec:
|
|
values:
|
|
services:
|
|
backend:
|
|
podAnnotations:
|
|
_default:
|
|
vault.hashicorp.com/agent-inject-secret-eav-jwt-private: null
|
|
vault.hashicorp.com/agent-inject-secret-eav-jwt-public: secrets/data/vault/common/jwt_public
|
|
vault.hashicorp.com/agent-inject-template-eav-jwt-private: null
|
|
vault.hashicorp.com/agent-inject-template-eav-jwt-public: '{{- with secret
|
|
"secrets/data/vault/common/jwt_public" -}}
|
|
|
|
{{ index .Data.data "public_key" }}
|
|
|
|
{{- end -}}'
|
|
checksum/jwt-runtime: e0960a7201af6acef03562faf53a36d9880a2724c954a752b416b886bb249e79
|
|
deployment:
|
|
args:
|
|
_default:
|
|
- 'set -a
|
|
|
|
[ -f /vault/secrets/eav-db ] && . /vault/secrets/eav-db
|
|
|
|
[ -f /vault/secrets/eav-s3 ] && . /vault/secrets/eav-s3
|
|
|
|
[ -f /vault/secrets/eav-jwt-public ] && export JWT_PUBLIC_KEY="$(cat
|
|
/vault/secrets/eav-jwt-public)"
|
|
|
|
set +a
|
|
|
|
exec /server/entrypoint.sh
|
|
|
|
'
|
|
volumes:
|
|
_default:
|
|
- configMap:
|
|
items:
|
|
- key: production.py
|
|
path:
|
|
_default: production.py
|
|
name:
|
|
_default: django-configmap
|
|
mountPath:
|
|
_default: /jwt-config/original-production.py
|
|
name: django-configmap
|
|
readOnly:
|
|
_default: true
|
|
subPath:
|
|
_default: production.py
|
|
- name: jwt-runtime-production
|
|
mountPath:
|
|
_default: /server/config/settings/production.py
|
|
subPath:
|
|
_default: production.py
|
|
readOnly:
|
|
_default: true
|
|
configMap:
|
|
name:
|
|
_default: jwt-runtime
|
|
items:
|
|
- key: production.py
|
|
path:
|
|
_default: production.py
|