Skip to content

Commit

Permalink
feat: add values for deploy k8b
Browse files Browse the repository at this point in the history
  • Loading branch information
iNeoO committed Feb 27, 2025
1 parent 10b768e commit e2303f3
Show file tree
Hide file tree
Showing 2 changed files with 385 additions and 310 deletions.
61 changes: 61 additions & 0 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,60 @@ pg:
clusterExtraLabels:
oblik.socialgouv.io/enabled: "false"

external-api:
~chart: app
~needs: [build-external-api, migrations-db, init-db]
imagePackage: external-api
host: "external-api-{{ .Values.global.host }}"
containerPort: 3000
labels:
oblik.socialgouv.io/enabled: "false"
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
livenessProbe:
tcpSocket:
port: 3000
startupProbe:
httpGet:
path: /
port: 3000
readinessProbe:
httpGet:
path: /
port: 3000
envFrom:
- configMapRef:
name: external-api
- configMapRef:
name: pg
- secretRef:
name: pg
- secretRef:
name: pg-app
- secretRef:
name: token
- secretRef:
name: "{{.Values.global.s3SecretName}}"
vars:
DEBUG: "*info*"
DEBUG_HIDE_DATE: "true"
TZ: Europe/Paris
SENTRY_RELEASE: "{{.Values.global.branchSlug32}}-{{.Values.global.shortSha}}"
POSTGRES_HOST: "$(PGHOST)"
POSTGRES_PORT: "$(PGPORT)"
POSTGRES_DB: "$(PGDATABASE)"

S3_BUCKET_ENDPOINT: "$(bucket_endpoint)"
S3_BUCKET_NAME: "$(bucket_name)"
S3_BUCKET_REGION: "$(bucket_region)"
S3_BUCKET_ACCESS_KEY: "$(bucket_access_key)"
S3_BUCKET_SECRET_KEY: "$(bucket_secret_key)"

backend:
~chart: app
~needs: [build-backend, migrations-db, init-db]
Expand Down Expand Up @@ -141,6 +195,13 @@ jobs:
context: ./
dockerfile: packages/backend/Dockerfile

build-external-api:
use: build
with:
imagePackage: external-api
context: ./
dockerfile: packages/external-api/Dockerfile

build-frontend-usagers:
use: build
envFrom:
Expand Down
Loading

0 comments on commit e2303f3

Please sign in to comment.