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