From 661f49409e69f5cfafbef4cd41411a72ebc5418d Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 13 Aug 2023 20:01:42 +0100 Subject: Copy all files from kubernetes repo into this one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit is a like-for-like copy of the [kubernetes repo](https://github.com/python-discord/kubernetes) check that repo for comit history prioir to this commit. Co-authored-by: Amrou Bellalouna Co-authored-by: Bradley Reynolds Co-authored-by: Chris Co-authored-by: Chris Lovering Co-authored-by: ChrisJL Co-authored-by: Den4200 Co-authored-by: GDWR Co-authored-by: Hassan Abouelela Co-authored-by: Hassan Abouelela Co-authored-by: jchristgit Co-authored-by: Joe Banks <20439493+jb3@users.noreply.github.com> Co-authored-by: Joe Banks Co-authored-by: Joe Banks Co-authored-by: Johannes Christ Co-authored-by: Kieran Siek Co-authored-by: kosayoda Co-authored-by: ks129 <45097959+ks129@users.noreply.github.com> Co-authored-by: Leon Sand├©y Co-authored-by: Leon Sand├©y Co-authored-by: MarkKoz Co-authored-by: Matteo Bertucci Co-authored-by: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com> Co-authored-by: Sebastiaan Zeeff Co-authored-by: vcokltfre --- kubernetes/namespaces/default/olli/README.md | 13 +++++++++ kubernetes/namespaces/default/olli/config.yaml | 34 ++++++++++++++++++++++++ kubernetes/namespaces/default/olli/secrets.yaml | Bin 0 -> 297 bytes 3 files changed, 47 insertions(+) create mode 100644 kubernetes/namespaces/default/olli/README.md create mode 100644 kubernetes/namespaces/default/olli/config.yaml create mode 100644 kubernetes/namespaces/default/olli/secrets.yaml (limited to 'kubernetes/namespaces/default/olli') diff --git a/kubernetes/namespaces/default/olli/README.md b/kubernetes/namespaces/default/olli/README.md new file mode 100644 index 0000000..ff748d5 --- /dev/null +++ b/kubernetes/namespaces/default/olli/README.md @@ -0,0 +1,13 @@ +# Olli + +This folder contains the deployment information for [Olli](https://github.com/python-discord/olli), our Loki-Discord relay. + +The deployment manifest is located within the repository. + +The rest of the configuration can be applied through `kubectl apply -f .` in this directory. + +A secret called `olli-env` with the following a key `WEBHOOK_URL` with the configured Discord webhook. + +| Key | Description | +| --------------| -------------------------- | +| `WEBHOOK_URL` | The Discord webhook to use | diff --git a/kubernetes/namespaces/default/olli/config.yaml b/kubernetes/namespaces/default/olli/config.yaml new file mode 100644 index 0000000..356aba8 --- /dev/null +++ b/kubernetes/namespaces/default/olli/config.yaml @@ -0,0 +1,34 @@ +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/secrets.yaml b/kubernetes/namespaces/default/olli/secrets.yaml new file mode 100644 index 0000000..75cdf23 Binary files /dev/null and b/kubernetes/namespaces/default/olli/secrets.yaml differ -- cgit v1.2.3