From ecb876b1e9184f012f76b5b79e7f05e4b80ca83b Mon Sep 17 00:00:00 2001 From: Nozomu Ohki <38576286+ohkinozomu@users.noreply.github.com> Date: Sun, 18 Apr 2021 06:30:16 +0900 Subject: [PATCH] docs: Fix Kubernetes example (#210) --- docs/website/docs/deploy.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/website/docs/deploy.md b/docs/website/docs/deploy.md index 06b5f980..e6f0e2bd 100644 --- a/docs/website/docs/deploy.md +++ b/docs/website/docs/deploy.md @@ -156,4 +156,34 @@ spec: image: docker.io/dosco/graphjin:latest ports: - containerPort: 8080 + env: + - name: GO_ENV + value: dev + volumeMounts: + - name: config + mountPath: /config/dev.yaml + subPath: dev.yaml + readOnly: true + volumes: + - name: config + secret: + secretName: graphjin-config + items: + - key: dev.yaml + path: dev.yaml + +--- +apiVersion: v1 +kind: Secret +metadata: + name: graphjin-config +stringData: + dev.yaml: | + database: + type: postgres + host: db + port: 5432 + dbname: app_development + user: postgres + password: postgres ```