From 75fde54d91d899d000484546923ae8bc6c500245 Mon Sep 17 00:00:00 2001 From: Raymond Date: Sat, 16 Dec 2023 19:54:20 +0900 Subject: [PATCH] test: deploy --- Dockerfile | 2 +- k8s/deployment.yaml | 90 ++++++++++++++++++++++----------------------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/Dockerfile b/Dockerfile index de7a141..8ef8cfa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-slim AS base +FROM node:20 AS base ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" RUN corepack enable diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index ed90e11..f57a2ff 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -21,51 +21,51 @@ spec: cpu: '500m' ports: - containerPort: 3000 - envFrom: - - secretRef: - name: catsnewyear-prod - # env: - # - name: NODE_ENV - # valueFrom: - # secretKeyRef: + # envFrom: + # - secretRef: # name: catsnewyear-prod - # key: NODE_ENV - # optional: false - # - name: PORT - # valueFrom: - # secretKeyRef: - # name: catsnewyear-prod - # key: PORT - # optional: false - # - name: DB_HOST - # valueFrom: - # secretKeyRef: - # name: catsnewyear-prod - # key: DB_HOST - # optional: false - # - name: DB_PORT - # valueFrom: - # secretKeyRef: - # name: catsnewyear-prod - # key: DB_PORT - # optional: false - # - name: DB_USER - # valueFrom: - # secretKeyRef: - # name: catsnewyear-prod - # key: DB_USER - # optional: false - # - name: DB_PWD - # valueFrom: - # secretKeyRef: - # name: catsnewyear-prod - # key: DB_PWD - # optional: false - # - name: DB_NAME - # valueFrom: - # secretKeyRef: - # name: catsnewyear-prod - # key: DB_NAME - # optional: false + env: + - name: NODE_ENV + valueFrom: + secretKeyRef: + name: catsnewyear-prod + key: NODE_ENV + optional: false + - name: PORT + valueFrom: + secretKeyRef: + name: catsnewyear-prod + key: PORT + optional: false + - name: DB_HOST + valueFrom: + secretKeyRef: + name: catsnewyear-prod + key: DB_HOST + optional: false + - name: DB_PORT + valueFrom: + secretKeyRef: + name: catsnewyear-prod + key: DB_PORT + optional: false + - name: DB_USER + valueFrom: + secretKeyRef: + name: catsnewyear-prod + key: DB_USER + optional: false + - name: DB_PWD + valueFrom: + secretKeyRef: + name: catsnewyear-prod + key: DB_PWD + optional: false + - name: DB_NAME + valueFrom: + secretKeyRef: + name: catsnewyear-prod + key: DB_NAME + optional: false imagePullSecrets: - name: vultr-registry