From 5f727ad5a30bf05f6255b329d9da9c66a14ba5da Mon Sep 17 00:00:00 2001 From: Roshanen Date: Thu, 28 Nov 2024 16:19:14 +0700 Subject: [PATCH] feat: add .env.example & deployment.yml --- .env.example | 4 ++++ deploy/deployment.yml | 46 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .env.example create mode 100644 deploy/deployment.yml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..81b8ac2 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +NOCODB_API_URL= +NOCODB_API_TOKEN= +NOCODB_COMPANY_DB= +NOCODB_SEMINAR_DB= \ No newline at end of file diff --git a/deploy/deployment.yml b/deploy/deployment.yml new file mode 100644 index 0000000..e66aed7 --- /dev/null +++ b/deploy/deployment.yml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ce-smart-career-frontend-prd + namespace: ce-smart-career +spec: + replicas: 1 + selector: + matchLabels: + app: ce-smart-career-frontend-prd + template: + metadata: + labels: + app: ce-smart-career-frontend-prd + annotations: + redeployTimestamp: "{{ timestamp }}" + spec: + containers: + - name: ce-smart-career-frontend-prd + image: ghcr.io/ce-smart-career/ce-smart-career-2024-prd:latest + imagePullPolicy: Always + env: + - name: NOCODB_API_URL + valueFrom: + secretKeyRef: + name: nocodb-credentials + key: NOCODB_API_URL + - name: NOCODB_API_TOKEN + valueFrom: + secretKeyRef: + name: nocodb-credentials + key: NOCODB_API_TOKEN + - name: NOCODB_COMPANY_DB + valueFrom: + secretKeyRef: + name: nocodb-credentials + key: NOCODB_COMPANY_DB + - name: NOCODB_SEMINAR_DB + valueFrom: + secretKeyRef: + name: nocodb-credentials + key: NOCODB_SEMINAR_DB + ports: + - containerPort: 3000 + imagePullSecrets: + - name: registry \ No newline at end of file