summaryrefslogtreecommitdiff
path: root/kubernetes
diff options
context:
space:
mode:
authorTitouan BION <titouan.bion@gmail.com>2021-02-13 23:25:18 +0100
committerJoffrey Bion <joffrey.bion@gmail.com>2021-02-13 23:40:10 +0100
commitf6a6f8f3e2ba41b44c2e9490b9dc2cc013fa2994 (patch)
tree0098dd46f883a0baca302e83484199b229d8afb6 /kubernetes
parentRename 'application' label of Prometheus exported metrics to match a more Kub... (diff)
downloadseven-wonders-f6a6f8f3e2ba41b44c2e9490b9dc2cc013fa2994.tar.gz
seven-wonders-f6a6f8f3e2ba41b44c2e9490b9dc2cc013fa2994.tar.bz2
seven-wonders-f6a6f8f3e2ba41b44c2e9490b9dc2cc013fa2994.zip
Add Loki logback appender to push server logs to the free cloud hosted Loki instance provided by Grafana.com
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/server.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/kubernetes/server.yml b/kubernetes/server.yml
index 6dbc751d..3838bdfb 100644
--- a/kubernetes/server.yml
+++ b/kubernetes/server.yml
@@ -15,6 +15,17 @@ spec:
spec:
containers:
- name: seven-wonders-server
+ env:
+ - name: LOKI_USERNAME
+ valueFrom:
+ secretKeyRef:
+ name: loki-credentials
+ key: username
+ - name: LOKI_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: loki-credentials
+ key: api-key
image: hildan/seven-wonders-server:latest
ports:
- containerPort: 80
bgstack15