Skip to content

Commit

Permalink
docs: Fix Kubernetes example (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu authored Apr 17, 2021
1 parent 622412b commit ecb876b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/website/docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit ecb876b

Please sign in to comment.