Project

General

Profile

The ungleich kubernetes infrastructure » History » Version 9

Nico Schottelius, 07/10/2021 05:00 PM

1 1 Nico Schottelius
h1. The ungleich kubernetes infrastructure
2
3 3 Nico Schottelius
{{toc}}
4
5 1 Nico Schottelius
h2. Status
6
7
This document is **pre-production**
8
9
h2. General architecture and components overview
10
11
* All k8s clusters are IPv6 only
12
* We use BGP peering to propagate podcidr and serviceCidr networks to our infrastructure
13 2 Nico Schottelius
* The main / public repository is "ungleich-k8s":https://code.ungleich.ch/ungleich-public/ungleich-k8s
14 1 Nico Schottelius
15
h2. ungleich kubernetes infrastructure v1
16
17
We are using the following components:
18
19 6 Nico Schottelius
* "Calico as a CNI":https://www.projectcalico.org/ with BGP, IPv6 only, no encapsulation
20 1 Nico Schottelius
* "kubernetes-secret-generator":https://github.com/mittwald/kubernetes-secret-generator for creating secrets
21
* "ungleich-certbot":https://hub.docker.com/repository/docker/ungleich/ungleich-certbot to get certificates
22 2 Nico Schottelius
* "rook with ceph rbd + cephfs":https://rook.io/ for storage
23
** rbd for almost everything, *ReadWriteOnce*
24
** cephfs for smaller things, multi access *ReadWriteMany*
25 3 Nico Schottelius
26 8 Nico Schottelius
h3. Persistent storage setup 
27
28
* 3 or 5 monitors
29
30 9 Nico Schottelius
h3. Cluster types
31 1 Nico Schottelius
32 9 Nico Schottelius
| **Type/Feature** | **Development** | **Production** |
33
| Min No. nodes | 3 (1 master, 3 worker) | 5 (3 master, 3 worker) |
34
| Recommended minimum | 4 (dedicated master, 3 worker) | 8 (3 master, 5 worker) |
35
| Separation of control plane | optional | recommended |
36
| Persistent storage | required | required |
37
| Number of storage monitors | 3 | 5 |
38
39 8 Nico Schottelius
40 3 Nico Schottelius
h2. Open Issues / To be discussed
41
42
* "Maybe add Autoscaling support?":https://github.com/kubernetes-sigs/metrics-server
43
** https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
44
** https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler/
45
* Certainly deploy in-cluster monitoring
46
** "prometheus-operator":https://github.com/prometheus-operator/prometheus-operator CR
47
** "kube-prometheus":https://github.com/prometheus-operator/kube-prometheus complete example, based on prometheus-operator
48 4 Nico Schottelius
** "kubernetes dashboard":https://github.com/kubernetes/dashboard generic cluster overview, basically kubectl for a broswer + graphs
49 5 Nico Schottelius
** "kube-prometheus-stack via helm":https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#kube-prometheus-stack
50
*** Looks most fitting, testing it in #9468
51 7 Nico Schottelius
* Matrix/Notification bot
52
** Informing about changes in the cluster