💩(summary) declare microservice in staging
Add the minimal extra templates and env values to deploy the micro service.
This commit is contained in:
committed by
aleb_the_flash
parent
dd0cb61ebc
commit
33c8a3a9e4
@@ -180,3 +180,107 @@ posthog:
|
|||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
nginx.ingress.kubernetes.io/upstream-vhost: eu-assets.i.posthog.com
|
nginx.ingress.kubernetes.io/upstream-vhost: eu-assets.i.posthog.com
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: https
|
nginx.ingress.kubernetes.io/backend-protocol: https
|
||||||
|
|
||||||
|
summary:
|
||||||
|
replicas: 1
|
||||||
|
envVars:
|
||||||
|
APP_NAME: summary-microservice
|
||||||
|
APP_API_TOKEN:
|
||||||
|
secretKeyRef:
|
||||||
|
name: summary
|
||||||
|
key: APP_API_TOKEN
|
||||||
|
AWS_S3_ENDPOINT_URL:
|
||||||
|
secretKeyRef:
|
||||||
|
name: meet-media-storage.bucket.libre.sh
|
||||||
|
key: url
|
||||||
|
AWS_S3_ACCESS_KEY_ID:
|
||||||
|
secretKeyRef:
|
||||||
|
name: meet-media-storage.bucket.libre.sh
|
||||||
|
key: accessKey
|
||||||
|
AWS_S3_SECRET_ACCESS_KEY:
|
||||||
|
secretKeyRef:
|
||||||
|
name: meet-media-storage.bucket.libre.sh
|
||||||
|
key: secretKey
|
||||||
|
AWS_STORAGE_BUCKET_NAME:
|
||||||
|
secretKeyRef:
|
||||||
|
name: meet-media-storage.bucket.libre.sh
|
||||||
|
key: bucket
|
||||||
|
AWS_S3_REGION_NAME: local
|
||||||
|
OPENAI_API_KEY:
|
||||||
|
secretKeyRef:
|
||||||
|
name: summary
|
||||||
|
key: OPENAI_API_KEY
|
||||||
|
WEBHOOK_API_TOKEN:
|
||||||
|
secretKeyRef:
|
||||||
|
name: summary
|
||||||
|
key: WEBHOOK_API_TOKEN
|
||||||
|
WEBHOOK_URL: https://www.mock-impress.com/webhook/
|
||||||
|
CELERY_BROKER_URL:
|
||||||
|
secretKeyRef:
|
||||||
|
name: redis-summary.redis.libre.sh
|
||||||
|
key: url
|
||||||
|
CELERY_RESULT_BACKEND:
|
||||||
|
secretKeyRef:
|
||||||
|
name: redis-summary.redis.libre.sh
|
||||||
|
key: url
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: lasuite/meet-summary
|
||||||
|
pullPolicy: Always
|
||||||
|
tag: "main"
|
||||||
|
|
||||||
|
celery:
|
||||||
|
replicas: 1
|
||||||
|
envVars:
|
||||||
|
APP_NAME: summary-microservice
|
||||||
|
APP_API_TOKEN:
|
||||||
|
secretKeyRef:
|
||||||
|
name: summary
|
||||||
|
key: APP_API_TOKEN
|
||||||
|
AWS_S3_ENDPOINT_URL:
|
||||||
|
secretKeyRef:
|
||||||
|
name: meet-media-storage.bucket.libre.sh
|
||||||
|
key: url
|
||||||
|
AWS_S3_ACCESS_KEY_ID:
|
||||||
|
secretKeyRef:
|
||||||
|
name: meet-media-storage.bucket.libre.sh
|
||||||
|
key: accessKey
|
||||||
|
AWS_S3_SECRET_ACCESS_KEY:
|
||||||
|
secretKeyRef:
|
||||||
|
name: meet-media-storage.bucket.libre.sh
|
||||||
|
key: secretKey
|
||||||
|
AWS_STORAGE_BUCKET_NAME:
|
||||||
|
secretKeyRef:
|
||||||
|
name: meet-media-storage.bucket.libre.sh
|
||||||
|
key: bucket
|
||||||
|
AWS_S3_REGION_NAME: local
|
||||||
|
OPENAI_API_KEY:
|
||||||
|
secretKeyRef:
|
||||||
|
name: summary
|
||||||
|
key: OPENAI_API_KEY
|
||||||
|
WEBHOOK_API_TOKEN:
|
||||||
|
secretKeyRef:
|
||||||
|
name: summary
|
||||||
|
key: WEBHOOK_API_TOKEN
|
||||||
|
WEBHOOK_URL: https://www.mock-impress.com/webhook/
|
||||||
|
CELERY_BROKER_URL:
|
||||||
|
secretKeyRef:
|
||||||
|
name: redis-summary.redis.libre.sh
|
||||||
|
key: url
|
||||||
|
CELERY_RESULT_BACKEND:
|
||||||
|
secretKeyRef:
|
||||||
|
name: redis-summary.redis.libre.sh
|
||||||
|
key: url
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: lasuite/meet-summary
|
||||||
|
pullPolicy: Always
|
||||||
|
tag: "main"
|
||||||
|
|
||||||
|
command:
|
||||||
|
- "celery"
|
||||||
|
- "-A"
|
||||||
|
- "summary.celery_worker"
|
||||||
|
- "worker"
|
||||||
|
- "--pool=solo"
|
||||||
|
- "--loglevel=info"
|
||||||
|
|||||||
7
src/helm/extra/templates/summary_keydb.yaml
Normal file
7
src/helm/extra/templates/summary_keydb.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: core.libre.sh/v1alpha1
|
||||||
|
kind: Redis
|
||||||
|
metadata:
|
||||||
|
name: redis-summary
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
|
spec:
|
||||||
|
disableAuth: false
|
||||||
14
src/helm/meet/templates/summary_secrets.yaml
Normal file
14
src/helm/meet/templates/summary_secrets.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: summary
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade
|
||||||
|
"helm.sh/hook-weight": "-5"
|
||||||
|
"helm.sh/hook-delete-policy": before-hook-creation
|
||||||
|
stringData:
|
||||||
|
APP_API_TOKEN: {{ .Values.appApiToken }}
|
||||||
|
OPENAI_API_KEY: {{ .Values.openaiApiKey }}
|
||||||
|
WEBHOOK_API_TOKEN: {{ .Values.webhookApiToken }}
|
||||||
|
|
||||||
Reference in New Issue
Block a user