diff options
author | 2023-09-13 00:24:21 +0100 | |
---|---|---|
committer | 2023-09-13 00:29:29 +0100 | |
commit | 5d751f32fbaffd280273f0b17f65a2eee23fdf04 (patch) | |
tree | 05fcbdce5a2815c867c4014b17679942712e8a3e /kubernetes/namespaces | |
parent | Update Olli secret to support new pydantic-settings naming scheme (diff) |
Move from toml based configmap to env based configmap
Diffstat (limited to 'kubernetes/namespaces')
-rw-r--r-- | kubernetes/namespaces/default/olli/config.yaml | 34 | ||||
-rw-r--r-- | kubernetes/namespaces/default/olli/configmap.yaml | 9 |
2 files changed, 9 insertions, 34 deletions
diff --git a/kubernetes/namespaces/default/olli/config.yaml b/kubernetes/namespaces/default/olli/config.yaml deleted file mode 100644 index 3b32cab..0000000 --- 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 0000000..cf1e7fd --- /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}]' |