cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit e2d3d48f2962990b84227e0094987c7372030128
parent f2c79c05aa4d8ee4b4753c95e3e1f8282147b5fd
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 16 Oct 2024 19:23:39 +0200

Update readme and add anti affinity

Diffstat:
MREADME.md | 38+++-----------------------------------
Mapps/base/matrix/draupnir4all/deployment.yaml | 10++++++++++
Mapps/base/matrix/mas/mas_deployment.yaml | 10++++++++++
3 files changed, 23 insertions(+), 35 deletions(-)

diff --git a/README.md b/README.md @@ -135,38 +135,6 @@ flux-system main@sha1:21ebd912 False True Applied revision infra-controllers main@sha1:21ebd912 False True Applied revision: main@sha1:21ebd912 ``` -## TODOs - -- [ ] Migrate old deployments here - - [ ] ~~Gitea~~ - - [x] Woodpecker - - [ ] ~~Docker repo~~ (Part of gitea now) - - [ ] Traefik - - [x] Certmanager - - [ ] External DNS - - [ ] Matrix - - [x] Media Repo - - [x] Move DB to DB Cluster - - [x] Synapse - - [x] Prepare DB in DB Cluster - - [x] Move DB to DB Cluster - - [x] Sliding Proxy - - [x] Prepare DB in DB Cluster - - [x] Move DB to DB Cluster - - [x] Mjolnir (important ones) - - [ ] ~~Bridges~~ - - [x] ~~Prepare DBs in DB Cluster~~ - - [ ] ~~Move DBs to DB Cluster~~ - - [ ] Keycloak - - [x] Prometheus/grafana - - [x] Cosign - - [ ] Mailu (<https://just-4.fun/blog/howto/oc-k8s-mailu/> with <https://github.com/fastlorenzo/helm-charts-1/tree/master/mailu>) - - [ ] Imapsync from old server to new server - - [ ] ... -- [ ] Port validate script -- [x] ~~Setup CI for github and woodpecker~~ (Fluxcd can pull it) -- [x] Verify sops is working as expected and then publish repo - -## Kubeaudit - -`find ./ | grep .yaml | xargs -I{} -d'\n' kubeaudit all -k ./kubeaudit-config.yml -f {} > audit.txt` +## Kube linter + +`kube-linter lint . > audit.txt` diff --git a/apps/base/matrix/draupnir4all/deployment.yaml b/apps/base/matrix/draupnir4all/deployment.yaml @@ -24,6 +24,16 @@ spec: app.kubernetes.io/instance: main-process app.kubernetes.io/name: draupnir4all spec: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app + operator: In + values: + - draupnir4all + topologyKey: "kubernetes.io/hostname" containers: - name: draupnir4all image: ghcr.io/mtrnord/cluster/draupnir:d4all diff --git a/apps/base/matrix/mas/mas_deployment.yaml b/apps/base/matrix/mas/mas_deployment.yaml @@ -17,6 +17,16 @@ spec: labels: app: mas spec: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app + operator: In + values: + - mas + topologyKey: "kubernetes.io/hostname" containers: - name: mas resources: