Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

Commit

Permalink
infra: added NODE_ENV to api deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mentos1386 committed Jul 15, 2018
1 parent 3035135 commit 6b9efbb
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions infra/k8s/api-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
apiVersion: "v1"
kind: "Secret"
metadata:
name: "evebook-api-secrets"
namespace: "default"
labels:
app: "evebook-api"
data:
ESI_CLIENT: "base64"
ESI_SECRET: "base64"
# ---
# apiVersion: "v1"
# kind: "Secret"
# metadata:
# name: "evebook-api-secrets"
# namespace: "default"
# labels:
# app: "evebook-api"
# data:
# ESI_CLIENT: "base64"
# ESI_SECRET: "base64"

---
apiVersion: "v1"
Expand All @@ -19,6 +19,7 @@ metadata:
labels:
app: "evebook-api"
data:
NODE_ENV: "production"
DB_HOST: "127.0.0.1"
DB_PORT: "5432"
DB_NAME: "postgres"
Expand Down Expand Up @@ -51,7 +52,7 @@ spec:
spec:
containers:
- name: "api"
image: "evebook/api:0cf12255adcb6f26f77286cefde23666fb02f0a2"
image: "evebook/api:3035135d5f2f8a45d6053349fb9ef1761ac50d51"
env:
- name: "DB_USERNAME"
valueFrom:
Expand Down Expand Up @@ -128,6 +129,11 @@ spec:
configMapKeyRef:
key: "ESI_ENDPOINT"
name: "evebook-api-config"
- name: "NODE_ENV"
valueFrom:
configMapKeyRef:
key: "NODE_ENV"
name: "evebook-api-config"
livenessProbe:
httpGet:
path: /status
Expand Down

0 comments on commit 6b9efbb

Please sign in to comment.