diff --git a/kubernetes/namespaces/default/olli/config.yaml b/kubernetes/namespaces/default/olli/config.yaml deleted file mode 100644 index 3b32cabe..00000000 --- a/kubernetes/namespaces/default/olli/config.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: olli-config -data: - olli.toml: | - [olli] - interval_minutes = 30 - - [loki] - api_url = "http://loki.loki.svc.cluster.local:3100" - jobs = [ - "default/bot", - "default/site", - "default/sir-lancebot", - "default/metricity", - "default/snekbox", - "default/quackstack", - "default/thread-bot", - "default/black-knight" - ] - - [[olli.tokens]] - token = "ERROR" - color = "#ff5f5f" - - [[olli.tokens]] - token = "CRITICAL" - color = "#ff5f5f" - - [[olli.tokens]] - token = "WARN" - color = "#ffe24d" - case_sensitive = true diff --git a/kubernetes/namespaces/default/olli/configmap.yaml b/kubernetes/namespaces/default/olli/configmap.yaml new file mode 100644 index 00000000..cf1e7fd9 --- /dev/null +++ b/kubernetes/namespaces/default/olli/configmap.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: olli-config-env +data: + LOKI_API_URL: http://loki.loki.svc.cluster.local:3100 + LOKI_JOBS: default/bot,default/site,default/sir-lancebot,default/sir-robin,default/metricity,default/snekbox,default/quackstack,default/black-knight + SERVICE_INTERVAL_MINUTES: '30' + SERVICE_TOKENS: '[{"token":"CRITICAL","color":"#ff5f5f"},{"token":"ERROR","color":"#ff5f5f"},{"token":"WARN","color":"#ffe24d","case_sensitive":true}]'