Project

General

Profile

The ungleich kubernetes infrastructure » History » Version 182

Nico Schottelius, 05/14/2023 06:07 PM

1 22 Nico Schottelius
h1. The ungleich kubernetes infrastructure and ungleich kubernetes manual
2 1 Nico Schottelius
3 3 Nico Schottelius
{{toc}}
4
5 1 Nico Schottelius
h2. Status
6
7 28 Nico Schottelius
This document is **pre-production**.
8
This document is to become the ungleich kubernetes infrastructure overview as well as the ungleich kubernetes manual.
9 1 Nico Schottelius
10 10 Nico Schottelius
h2. k8s clusters
11
12 123 Nico Schottelius
| Cluster            | Purpose/Setup     | Maintainer | Master(s)                     | argo                                                   | v4 http proxy | last verified |
13
| c0.k8s.ooo         | Dev               | -          | UNUSED                        |                                                        |               |    2021-10-05 |
14
| c1.k8s.ooo         | retired           |            | -                             |                                                        |               |    2022-03-15 |
15
| c2.k8s.ooo         | Dev p7 HW         | Nico       | server47 server53 server54    | "argo":https://argocd-server.argocd.svc.c2.k8s.ooo     |               |    2021-10-05 |
16
| c3.k8s.ooo         | retired           | -          | -                             |                                                        |               |    2021-10-05 |
17
| c4.k8s.ooo         | Dev2 p7 HW        | Jin-Guk    | server52 server53 server54    |                                                        |               |             - |
18
| c5.k8s.ooo         | retired           |            | -                             |                                                        |               |    2022-03-15 |
19
| c6.k8s.ooo         | Dev p6 VM Jin-Guk | Jin-Guk    |                               |                                                        |               |               |
20
| [[p5.k8s.ooo]]     | production        |            | server34 server36 server38    | "argo":https://argocd-server.argocd.svc.p5.k8s.ooo     | -             |               |
21
| [[p5-cow.k8s.ooo]] | production        | Nico       | server47 server51 server55    | "argo":https://argocd-server.argocd.svc.p5-cow.k8s.ooo |               |    2022-08-27 |
22
| [[p6.k8s.ooo]]     | production        |            | server67 server69 server71    | "argo":https://argocd-server.argocd.svc.p6.k8s.ooo     | 147.78.194.13 |    2021-10-05 |
23 177 Nico Schottelius
| [[p10.k8s.ooo]]    | production        |            | server131 server132 server133 | "argo":https://argocd-server.argocd.svc.p10.k8s.ooo    | 147.78.194.12 |    2021-10-05 |
24 123 Nico Schottelius
| [[k8s.ge.nau.so]]  | development       |            | server107 server108 server109 | "argo":https://argocd-server.argocd.svc.k8s.ge.nau.so  |               |               |
25
| [[dev.k8s.ooo]]    | development       |            | server110 server111 server112 | "argo":https://argocd-server.argocd.svc.dev.k8s.ooo    | -             |    2022-07-08 |
26 164 Nico Schottelius
| [[r1r2p15k8sooo|r1.p15.k8s.ooo]] | production | Nico | server120 | | | 2022-10-30 |
27
| [[r1r2p15k8sooo|r2.p15.k8s.ooo]] | production | Nico | server121 | | | 2022-09-06 |
28 162 Nico Schottelius
| [[r1r2p10k8sooo|r1.p10.k8s.ooo]] | production | Nico | server122 | | | 2022-10-30 |
29
| [[r1r2p10k8sooo|r2.p10.k8s.ooo]] | production | Nico | server123 | | | 2022-10-15 |
30
| [[r1r2p5k8sooo|r1.p5.k8s.ooo]] | production | Nico | server137 | | | 2022-10-30 |
31
| [[r1r2p5k8sooo|r2.p5.k8s.ooo]] | production | Nico | server138 | | | 2022-10-30 |
32
| [[r1r2p6k8sooo|r1.p6.k8s.ooo]] | production | Nico | server139 | | | 2022-10-30 |
33
| [[r1r2p6k8sooo|r2.p6.k8s.ooo]] | production | Nico | server140 | | | 2022-10-30 |
34 21 Nico Schottelius
35 1 Nico Schottelius
h2. General architecture and components overview
36
37
* All k8s clusters are IPv6 only
38
* We use BGP peering to propagate podcidr and serviceCidr networks to our infrastructure
39
* The main public testing repository is "ungleich-k8s":https://code.ungleich.ch/ungleich-public/ungleich-k8s
40 18 Nico Schottelius
** Private configurations are found in the **k8s-config** repository
41 1 Nico Schottelius
42
h3. Cluster types
43
44 28 Nico Schottelius
| **Type/Feature**            | **Development**                | **Production**         |
45
| Min No. nodes               | 3 (1 master, 3 worker)         | 5 (3 master, 3 worker) |
46
| Recommended minimum         | 4 (dedicated master, 3 worker) | 8 (3 master, 5 worker) |
47
| Separation of control plane | optional                       | recommended            |
48
| Persistent storage          | required                       | required               |
49
| Number of storage monitors  | 3                              | 5                      |
50 1 Nico Schottelius
51 43 Nico Schottelius
h2. General k8s operations
52 1 Nico Schottelius
53 46 Nico Schottelius
h3. Cheat sheet / external great references
54
55
* "kubectl cheatsheet":https://kubernetes.io/docs/reference/kubectl/cheatsheet/
56
57 117 Nico Schottelius
h3. Allowing to schedule work on the control plane / removing node taints
58 69 Nico Schottelius
59
* Mostly for single node / test / development clusters
60
* Just remove the master taint as follows
61
62
<pre>
63
kubectl taint nodes --all node-role.kubernetes.io/master-
64 118 Nico Schottelius
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
65 69 Nico Schottelius
</pre>
66 1 Nico Schottelius
67 117 Nico Schottelius
You can check the node taints using @kubectl describe node ...@
68 69 Nico Schottelius
69 44 Nico Schottelius
h3. Get the cluster admin.conf
70
71
* On the masters of each cluster you can find the file @/etc/kubernetes/admin.conf@
72
* To be able to administrate the cluster you can copy the admin.conf to your local machine
73
* Multi cluster debugging can very easy if you name the config ~/cX-admin.conf (see example below)
74
75
<pre>
76
% scp root@server47.place7.ungleich.ch:/etc/kubernetes/admin.conf ~/c2-admin.conf
77
% export KUBECONFIG=~/c2-admin.conf    
78
% kubectl get nodes
79
NAME       STATUS                     ROLES                  AGE   VERSION
80
server47   Ready                      control-plane,master   82d   v1.22.0
81
server48   Ready                      control-plane,master   82d   v1.22.0
82
server49   Ready                      <none>                 82d   v1.22.0
83
server50   Ready                      <none>                 82d   v1.22.0
84
server59   Ready                      control-plane,master   82d   v1.22.0
85
server60   Ready,SchedulingDisabled   <none>                 82d   v1.22.0
86
server61   Ready                      <none>                 82d   v1.22.0
87
server62   Ready                      <none>                 82d   v1.22.0               
88
</pre>
89
90 18 Nico Schottelius
h3. Installing a new k8s cluster
91 8 Nico Schottelius
92 9 Nico Schottelius
* Decide on the cluster name (usually *cX.k8s.ooo*), X counting upwards
93 28 Nico Schottelius
** Using pXX.k8s.ooo for production clusters of placeXX
94 9 Nico Schottelius
* Use cdist to configure the nodes with requirements like crio
95
* Decide between single or multi node control plane setups (see below)
96 28 Nico Schottelius
** Single control plane suitable for development clusters
97 9 Nico Schottelius
98 28 Nico Schottelius
Typical init procedure:
99 9 Nico Schottelius
100 28 Nico Schottelius
* Single control plane: @kubeadm init --config bootstrap/XXX/kubeadm.yaml@
101
* Multi control plane (HA): @kubeadm init --config bootstrap/XXX/kubeadm.yaml --upload-certs@
102 10 Nico Schottelius
103 29 Nico Schottelius
h3. Deleting a pod that is hanging in terminating state
104
105
<pre>
106
kubectl delete pod <PODNAME> --grace-period=0 --force --namespace <NAMESPACE>
107
</pre>
108
109
(from https://stackoverflow.com/questions/35453792/pods-stuck-in-terminating-status)
110
111 42 Nico Schottelius
h3. Listing nodes of a cluster
112
113
<pre>
114
[15:05] bridge:~% kubectl get nodes
115
NAME       STATUS   ROLES                  AGE   VERSION
116
server22   Ready    <none>                 52d   v1.22.0
117
server23   Ready    <none>                 52d   v1.22.2
118
server24   Ready    <none>                 52d   v1.22.0
119
server25   Ready    <none>                 52d   v1.22.0
120
server26   Ready    <none>                 52d   v1.22.0
121
server27   Ready    <none>                 52d   v1.22.0
122
server63   Ready    control-plane,master   52d   v1.22.0
123
server64   Ready    <none>                 52d   v1.22.0
124
server65   Ready    control-plane,master   52d   v1.22.0
125
server66   Ready    <none>                 52d   v1.22.0
126
server83   Ready    control-plane,master   52d   v1.22.0
127
server84   Ready    <none>                 52d   v1.22.0
128
server85   Ready    <none>                 52d   v1.22.0
129
server86   Ready    <none>                 52d   v1.22.0
130
</pre>
131
132 41 Nico Schottelius
h3. Removing / draining a node
133
134
Usually @kubectl drain server@ should do the job, but sometimes we need to be more aggressive:
135
136 1 Nico Schottelius
<pre>
137 103 Nico Schottelius
kubectl drain --delete-emptydir-data --ignore-daemonsets serverXX
138 42 Nico Schottelius
</pre>
139
140
h3. Readding a node after draining
141
142
<pre>
143
kubectl uncordon serverXX
144 1 Nico Schottelius
</pre>
145 43 Nico Schottelius
146 50 Nico Schottelius
h3. (Re-)joining worker nodes after creating the cluster
147 49 Nico Schottelius
148
* We need to have an up-to-date token
149
* We use different join commands for the workers and control plane nodes
150
151
Generating the join command on an existing control plane node:
152
153
<pre>
154
kubeadm token create --print-join-command
155
</pre>
156
157 50 Nico Schottelius
h3. (Re-)joining control plane nodes after creating the cluster
158 1 Nico Schottelius
159 50 Nico Schottelius
* We generate the token again
160
* We upload the certificates
161
* We need to combine/create the join command for the control plane node
162
163
Example session:
164
165
<pre>
166
% kubeadm token create --print-join-command
167
kubeadm join p10-api.k8s.ooo:6443 --token xmff4i.ABC --discovery-token-ca-cert-hash sha256:longhash 
168
169
% kubeadm init phase upload-certs --upload-certs
170
[upload-certs] Storing the certificates in Secret "kubeadm-certs" in the "kube-system" Namespace
171
[upload-certs] Using certificate key:
172
CERTKEY
173
174
# Then we use these two outputs on the joining node:
175
176
kubeadm join p10-api.k8s.ooo:6443 --token xmff4i.ABC --discovery-token-ca-cert-hash sha256:longhash --control-plane --certificate-key CERTKEY
177
</pre>
178
179
Commands to be used on a control plane node:
180
181
<pre>
182
kubeadm token create --print-join-command
183
kubeadm init phase upload-certs --upload-certs
184
</pre>
185
186
Commands to be used on the joining node:
187
188
<pre>
189
JOINCOMMAND --control-plane --certificate-key CERTKEY
190
</pre>
191 49 Nico Schottelius
192 51 Nico Schottelius
SEE ALSO
193
194
* https://stackoverflow.com/questions/63936268/how-to-generate-kubeadm-token-for-secondary-control-plane-nodes
195
* https://blog.scottlowe.org/2019/08/15/reconstructing-the-join-command-for-kubeadm/
196
197 53 Nico Schottelius
h3. How to fix etcd does not start when rejoining a kubernetes cluster as a control plane
198 52 Nico Schottelius
199
If during the above step etcd does not come up, @kubeadm join@ can hang as follows:
200
201
<pre>
202
[control-plane] Creating static Pod manifest for "kube-apiserver"                                                              
203
[control-plane] Creating static Pod manifest for "kube-controller-manager"                                                     
204
[control-plane] Creating static Pod manifest for "kube-scheduler"                                                              
205
[check-etcd] Checking that the etcd cluster is healthy                                                                         
206
error execution phase check-etcd: etcd cluster is not healthy: failed to dial endpoint https://[2a0a:e5c0:10:1:225:b3ff:fe20:37
207
8a]:2379 with maintenance client: context deadline exceeded                                                                    
208
To see the stack trace of this error execute with --v=5 or higher         
209
</pre>
210
211
Then the problem is likely that the etcd server is still a member of the cluster. We first need to remove it from the etcd cluster and then the join works.
212
213
To fix this we do:
214
215
* Find a working etcd pod
216
* Find the etcd members / member list
217
* Remove the etcd member that we want to re-join the cluster
218
219
220
<pre>
221
# Find the etcd pods
222
kubectl -n kube-system get pods -l component=etcd,tier=control-plane
223
224
# Get the list of etcd servers with the member id 
225
kubectl exec -n kube-system -ti ETCDPODNAME -- etcdctl --endpoints '[::1]:2379' --cacert /etc/kubernetes/pki/etcd/ca.crt --cert  /etc/kubernetes/pki/etcd/server.crt --key /etc/kubernetes/pki/etcd/server.key member list
226
227
# Remove the member
228
kubectl exec -n kube-system -ti ETCDPODNAME -- etcdctl --endpoints '[::1]:2379' --cacert /etc/kubernetes/pki/etcd/ca.crt --cert  /etc/kubernetes/pki/etcd/server.crt --key /etc/kubernetes/pki/etcd/server.key member remove MEMBERID
229
</pre>
230
231
Sample session:
232
233
<pre>
234
[10:48] line:~% kubectl -n kube-system get pods -l component=etcd,tier=control-plane
235
NAME            READY   STATUS    RESTARTS     AGE
236
etcd-server63   1/1     Running   0            3m11s
237
etcd-server65   1/1     Running   3            7d2h
238
etcd-server83   1/1     Running   8 (6d ago)   7d2h
239
[10:48] line:~% kubectl exec -n kube-system -ti etcd-server65 -- etcdctl --endpoints '[::1]:2379' --cacert /etc/kubernetes/pki/etcd/ca.crt --cert  /etc/kubernetes/pki/etcd/server.crt --key /etc/kubernetes/pki/etcd/server.key member list
240
356891cd676df6e4, started, server65, https://[2a0a:e5c0:10:1:225:b3ff:fe20:375c]:2380, https://[2a0a:e5c0:10:1:225:b3ff:fe20:375c]:2379, false
241
371b8a07185dee7e, started, server63, https://[2a0a:e5c0:10:1:225:b3ff:fe20:378a]:2380, https://[2a0a:e5c0:10:1:225:b3ff:fe20:378a]:2379, false
242
5942bc58307f8af9, started, server83, https://[2a0a:e5c0:10:1:3e4a:92ff:fe79:bb98]:2380, https://[2a0a:e5c0:10:1:3e4a:92ff:fe79:bb98]:2379, false
243
244
[10:48] line:~% kubectl exec -n kube-system -ti etcd-server65 -- etcdctl --endpoints '[::1]:2379' --cacert /etc/kubernetes/pki/etcd/ca.crt --cert  /etc/kubernetes/pki/etcd/server.crt --key /etc/kubernetes/pki/etcd/server.key member remove 371b8a07185dee7e
245
Member 371b8a07185dee7e removed from cluster e3c0805f592a8f77
246 1 Nico Schottelius
247
</pre>
248
249
SEE ALSO
250
251
* We found the solution using https://stackoverflow.com/questions/67921552/re-installed-node-cannot-join-kubernetes-cluster
252 56 Nico Schottelius
253 147 Nico Schottelius
h3. Node labels (adding, showing, removing)
254
255
Listing the labels:
256
257
<pre>
258
kubectl get nodes --show-labels
259
</pre>
260
261
Adding labels:
262
263
<pre>
264
kubectl label nodes LIST-OF-NODES label1=value1 
265
266
</pre>
267
268
For instance:
269
270
<pre>
271
kubectl label nodes router2 router3 hosttype=router 
272
</pre>
273
274
Selecting nodes in pods:
275
276
<pre>
277
apiVersion: v1
278
kind: Pod
279
...
280
spec:
281
  nodeSelector:
282
    hosttype: router
283
</pre>
284
285 148 Nico Schottelius
Removing labels by adding a minus at the end of the label name:
286
287
<pre>
288
kubectl label node <nodename> <labelname>-
289
</pre>
290
291
For instance:
292
293
<pre>
294
kubectl label nodes router2 router3 hosttype- 
295
</pre>
296
297 147 Nico Schottelius
SEE ALSO
298 1 Nico Schottelius
299 148 Nico Schottelius
* https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes/
300
* https://stackoverflow.com/questions/34067979/how-to-delete-a-node-label-by-command-and-api
301 147 Nico Schottelius
302 101 Nico Schottelius
h3. Hardware Maintenance using ungleich-hardware
303
304
Use the following manifest and replace the HOST with the actual host:
305
306
<pre>
307
apiVersion: v1
308
kind: Pod
309
metadata:
310
  name: ungleich-hardware-HOST
311
spec:
312
  containers:
313
  - name: ungleich-hardware
314
    image: ungleich/ungleich-hardware:0.0.5
315
    args:
316
    - sleep
317
    - "1000000"
318
    volumeMounts:
319
      - mountPath: /dev
320
        name: dev
321
    securityContext:
322
      privileged: true
323
  nodeSelector:
324
    kubernetes.io/hostname: "HOST"
325
326
  volumes:
327
    - name: dev
328
      hostPath:
329
        path: /dev
330
</pre>
331
332 102 Nico Schottelius
Also see: [[The_ungleich_hardware_maintenance_guide]]
333
334 105 Nico Schottelius
h3. Triggering a cronjob / creating a job from a cronjob
335 104 Nico Schottelius
336
To test a cronjob, we can create a job from a cronjob:
337
338
<pre>
339
kubectl create job --from=cronjob/volume2-daily-backup volume2-manual
340
</pre>
341
342
This creates a job volume2-manual based on the cronjob  volume2-daily
343
344 112 Nico Schottelius
h3. su-ing into a user that has nologin shell set
345
346
Many times users are having nologin as their shell inside the container. To be able to execute maintenance commands within the
347
container, we can use @su -s /bin/sh@ like this:
348
349
<pre>
350
su -s /bin/sh -c '/path/to/your/script' testuser
351
</pre>
352
353
Found on https://serverfault.com/questions/351046/how-to-run-command-as-user-who-has-usr-sbin-nologin-as-shell
354
355 113 Nico Schottelius
h3. How to print a secret value
356
357
Assuming you want the "password" item from a secret, use:
358
359
<pre>
360
kubectl get secret SECRETNAME -o jsonpath="{.data.password}" | base64 -d; echo "" 
361
</pre>
362
363 173 Nico Schottelius
h3. How to upgrade a kubernetes cluster
364 172 Nico Schottelius
365
h4. General
366
367
* Should be done every X months to stay up-to-date
368
** X probably something like 3-6
369
* kubeadm based clusters
370
* Needs specific kubeadm versions for upgrade
371
* Follow instructions on https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/
372
373
h4. Getting a specific kubeadm or kubelet version
374
375
<pre>
376
ARCH=amd64
377
RELEASE=v1.24.9
378 181 Nico Schottelius
RELEASE=v1.25.9
379 182 Nico Schottelius
RELEASE=v1.23.17
380 172 Nico Schottelius
381
curl -L --remote-name-all https://dl.k8s.io/release/${RELEASE}/bin/linux/${ARCH}/{kubeadm,kubelet}
382 182 Nico Schottelius
chmod u+x kubeadm kubelet
383 172 Nico Schottelius
</pre>
384
385
h4. Steps
386
387
* kubeadm upgrade plan
388
** On one control plane node
389
* kubeadm upgrade apply vXX.YY.ZZ
390
** On one control plane node
391
392 173 Nico Schottelius
Repeat for all control planes nodes. The upgrade kubelet on all other nodes via package manager.
393 172 Nico Schottelius
394 157 Nico Schottelius
h2. Reference CNI
395
396
* Mainly "stupid", but effective plugins
397
* Main documentation on https://www.cni.dev/plugins/current/
398 158 Nico Schottelius
* Plugins
399
** bridge
400
*** Can create the bridge on the host
401
*** But seems not to be able to add host interfaces to it as well
402
*** Has support for vlan tags
403
** vlan
404
*** creates vlan tagged sub interface on the host
405 160 Nico Schottelius
*** "It's a 1:1 mapping (i.e. no bridge in between)":https://github.com/k8snetworkplumbingwg/multus-cni/issues/569
406 158 Nico Schottelius
** host-device
407
*** moves the interface from the host into the container
408
*** very easy for physical connections to containers
409 159 Nico Schottelius
** ipvlan
410
*** "virtualisation" of a host device
411
*** routing based on IP
412
*** Same MAC for everyone
413
*** Cannot reach the master interface
414
** maclvan
415
*** With mac addresses
416
*** Supports various modes (to be checked)
417
** ptp ("point to point")
418
*** Creates a host device and connects it to the container
419
** win*
420 158 Nico Schottelius
*** Windows implementations
421 157 Nico Schottelius
422 62 Nico Schottelius
h2. Calico CNI
423
424
h3. Calico Installation
425
426
* We install "calico using helm":https://docs.projectcalico.org/getting-started/kubernetes/helm
427
* This has the following advantages:
428
** Easy to upgrade
429
** Does not require os to configure IPv6/dual stack settings as the tigera operator figures out things on its own
430
431
Usually plain calico can be installed directly using:
432
433
<pre>
434 174 Nico Schottelius
VERSION=v3.25.0
435 149 Nico Schottelius
436 1 Nico Schottelius
helm repo add projectcalico https://docs.projectcalico.org/charts
437 167 Nico Schottelius
helm repo update
438 124 Nico Schottelius
helm upgrade --install --namespace tigera calico projectcalico/tigera-operator --version $VERSION --create-namespace
439 1 Nico Schottelius
</pre>
440 92 Nico Schottelius
441
* Check the tags on https://github.com/projectcalico/calico/tags for the latest release
442 62 Nico Schottelius
443
h3. Installing calicoctl
444
445 115 Nico Schottelius
* General installation instructions, including binary download: https://projectcalico.docs.tigera.io/maintenance/clis/calicoctl/install
446
447 62 Nico Schottelius
To be able to manage and configure calico, we need to 
448
"install calicoctl (we choose the version as a pod)":https://docs.projectcalico.org/getting-started/clis/calicoctl/install#install-calicoctl-as-a-kubernetes-pod
449
450
<pre>
451
kubectl apply -f https://docs.projectcalico.org/manifests/calicoctl.yaml
452
</pre>
453
454 93 Nico Schottelius
Or version specific:
455
456
<pre>
457
kubectl apply -f https://github.com/projectcalico/calico/blob/v3.20.4/manifests/calicoctl.yaml
458 97 Nico Schottelius
459
# For 3.22
460
kubectl apply -f https://projectcalico.docs.tigera.io/archive/v3.22/manifests/calicoctl.yaml
461 93 Nico Schottelius
</pre>
462
463 70 Nico Schottelius
And making it easier accessible by alias:
464
465
<pre>
466
alias calicoctl="kubectl exec -i -n kube-system calicoctl -- /calicoctl"
467
</pre>
468
469 62 Nico Schottelius
h3. Calico configuration
470
471 63 Nico Schottelius
By default our k8s clusters "BGP peer":https://docs.projectcalico.org/networking/bgp
472
with an upstream router to propagate podcidr and servicecidr.
473 62 Nico Schottelius
474
Default settings in our infrastructure:
475
476
* We use a full-mesh using the @nodeToNodeMeshEnabled: true@ option
477
* We keep the original next hop so that *only* the server with the pod is announcing it (instead of ecmp)
478 1 Nico Schottelius
* We use private ASNs for k8s clusters
479 63 Nico Schottelius
* We do *not* use any overlay
480 62 Nico Schottelius
481
After installing calico and calicoctl the last step of the installation is usually:
482
483 1 Nico Schottelius
<pre>
484 79 Nico Schottelius
calicoctl create -f - < calico-bgp.yaml
485 62 Nico Schottelius
</pre>
486
487
488
A sample BGP configuration:
489
490
<pre>
491
---
492
apiVersion: projectcalico.org/v3
493
kind: BGPConfiguration
494
metadata:
495
  name: default
496
spec:
497
  logSeverityScreen: Info
498
  nodeToNodeMeshEnabled: true
499
  asNumber: 65534
500
  serviceClusterIPs:
501
  - cidr: 2a0a:e5c0:10:3::/108
502
  serviceExternalIPs:
503
  - cidr: 2a0a:e5c0:10:3::/108
504
---
505
apiVersion: projectcalico.org/v3
506
kind: BGPPeer
507
metadata:
508
  name: router1-place10
509
spec:
510
  peerIP: 2a0a:e5c0:10:1::50
511
  asNumber: 213081
512
  keepOriginalNextHop: true
513
</pre>
514
515 126 Nico Schottelius
h2. Cilium CNI (experimental)
516
517 137 Nico Schottelius
h3. Status
518
519 138 Nico Schottelius
*NO WORKING CILIUM CONFIGURATION FOR IPV6 only modes*
520 137 Nico Schottelius
521 146 Nico Schottelius
h3. Latest error
522
523
It seems cilium does not run on IPv6 only hosts:
524
525
<pre>
526
level=info msg="Validating configured node address ranges" subsys=daemon
527
level=fatal msg="postinit failed" error="external IPv4 node address could not be derived, please configure via --ipv4-node" subsys=daemon
528
level=info msg="Starting IP identity watcher" subsys=ipcache
529
</pre>
530
531
It crashes after that log entry
532
533 128 Nico Schottelius
h3. BGP configuration
534
535
* The cilium-operator will not start without a correct configmap being present beforehand (see error message below)
536
* Creating the bgp config beforehand as a configmap is thus required.
537
538
The error one gets without the configmap present:
539
540
Pods are hanging with:
541
542
<pre>
543
cilium-bpqm6                       0/1     Init:0/4            0             9s
544
cilium-operator-5947d94f7f-5bmh2   0/1     ContainerCreating   0             9s
545
</pre>
546
547
The error message in the cilium-*perator is:
548
549
<pre>
550
Events:
551
  Type     Reason       Age                From               Message
552
  ----     ------       ----               ----               -------
553
  Normal   Scheduled    80s                default-scheduler  Successfully assigned kube-system/cilium-operator-5947d94f7f-lqcsp to server56
554
  Warning  FailedMount  16s (x8 over 80s)  kubelet            MountVolume.SetUp failed for volume "bgp-config-path" : configmap "bgp-config" not found
555
</pre>
556
557
A correct bgp config looks like this:
558
559
<pre>
560
apiVersion: v1
561
kind: ConfigMap
562
metadata:
563
  name: bgp-config
564
  namespace: kube-system
565
data:
566
  config.yaml: |
567
    peers:
568
      - peer-address: 2a0a:e5c0::46
569
        peer-asn: 209898
570
        my-asn: 65533
571
      - peer-address: 2a0a:e5c0::47
572
        peer-asn: 209898
573
        my-asn: 65533
574
    address-pools:
575
      - name: default
576
        protocol: bgp
577
        addresses:
578
          - 2a0a:e5c0:0:14::/64
579
</pre>
580 127 Nico Schottelius
581
h3. Installation
582 130 Nico Schottelius
583 127 Nico Schottelius
Adding the repo
584 1 Nico Schottelius
<pre>
585 127 Nico Schottelius
586 129 Nico Schottelius
helm repo add cilium https://helm.cilium.io/
587 130 Nico Schottelius
helm repo update
588
</pre>
589 129 Nico Schottelius
590 135 Nico Schottelius
Installing + configuring cilium
591 129 Nico Schottelius
<pre>
592 130 Nico Schottelius
ipv6pool=2a0a:e5c0:0:14::/112
593 1 Nico Schottelius
594 146 Nico Schottelius
version=1.12.2
595 129 Nico Schottelius
596
helm upgrade --install cilium cilium/cilium --version $version \
597 1 Nico Schottelius
  --namespace kube-system \
598
  --set ipv4.enabled=false \
599
  --set ipv6.enabled=true \
600 146 Nico Schottelius
  --set enableIPv6Masquerade=false \
601
  --set bgpControlPlane.enabled=true 
602 1 Nico Schottelius
603 146 Nico Schottelius
#  --set ipam.operator.clusterPoolIPv6PodCIDRList=$ipv6pool
604
605
# Old style bgp?
606 136 Nico Schottelius
#   --set bgp.enabled=true --set bgp.announce.podCIDR=true \
607 127 Nico Schottelius
608
# Show possible configuration options
609
helm show values cilium/cilium
610
611 1 Nico Schottelius
</pre>
612 132 Nico Schottelius
613
Using a /64 for ipam.operator.clusterPoolIPv6PodCIDRList fails with:
614
615
<pre>
616
level=fatal msg="Unable to init cluster-pool allocator" error="unable to initialize IPv6 allocator New CIDR set failed; the node CIDR size is too big" subsys=cilium-operator-generic
617
</pre>
618
619 126 Nico Schottelius
620 1 Nico Schottelius
See also https://github.com/cilium/cilium/issues/20756
621 135 Nico Schottelius
622
Seems a /112 is actually working.
623
624
h3. Kernel modules
625
626
Cilium requires the following modules to be loaded on the host (not loaded by default):
627
628
<pre>
629 1 Nico Schottelius
modprobe  ip6table_raw
630
modprobe  ip6table_filter
631
</pre>
632 146 Nico Schottelius
633
h3. Interesting helm flags
634
635
* autoDirectNodeRoutes
636
* bgpControlPlane.enabled = true
637
638
h3. SEE ALSO
639
640
* https://docs.cilium.io/en/v1.12/helm-reference/
641 133 Nico Schottelius
642 179 Nico Schottelius
h2. Multus
643 168 Nico Schottelius
644
* https://github.com/k8snetworkplumbingwg/multus-cni
645
* Installing a deployment w/ CRDs
646 150 Nico Schottelius
647 169 Nico Schottelius
<pre>
648 176 Nico Schottelius
VERSION=v4.0.1
649 169 Nico Schottelius
650 170 Nico Schottelius
kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/${VERSION}/deployments/multus-daemonset-crio.yml
651
</pre>
652 169 Nico Schottelius
653 122 Nico Schottelius
h2. ArgoCD 
654 56 Nico Schottelius
655 60 Nico Schottelius
h3. Argocd Installation
656 1 Nico Schottelius
657 116 Nico Schottelius
* See https://argo-cd.readthedocs.io/en/stable/
658
659 60 Nico Schottelius
As there is no configuration management present yet, argocd is installed using
660
661 1 Nico Schottelius
<pre>
662 60 Nico Schottelius
kubectl create namespace argocd
663 86 Nico Schottelius
664 96 Nico Schottelius
# Specific Version
665
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v2.3.2/manifests/install.yaml
666 86 Nico Schottelius
667
# OR: latest stable
668 60 Nico Schottelius
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
669 56 Nico Schottelius
</pre>
670 1 Nico Schottelius
671 116 Nico Schottelius
672 1 Nico Schottelius
673 60 Nico Schottelius
h3. Get the argocd credentials
674
675
<pre>
676
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo ""
677
</pre>
678 52 Nico Schottelius
679 87 Nico Schottelius
h3. Accessing argocd
680
681
In regular IPv6 clusters:
682
683
* Navigate to https://argocd-server.argocd.CLUSTERDOMAIN
684
685
In legacy IPv4 clusters
686
687
<pre>
688
kubectl --namespace argocd port-forward svc/argocd-server 8080:80
689
</pre>
690
691 88 Nico Schottelius
* Navigate to https://localhost:8080
692
693 68 Nico Schottelius
h3. Using the argocd webhook to trigger changes
694 67 Nico Schottelius
695
* To trigger changes post json https://argocd.example.com/api/webhook
696
697 72 Nico Schottelius
h3. Deploying an application
698
699
* Applications are deployed via git towards gitea (code.ungleich.ch) and then pulled by argo
700 73 Nico Schottelius
* Always include the *redmine-url* pointing to the (customer) ticket
701
** Also add the support-url if it exists
702 72 Nico Schottelius
703
Application sample
704
705
<pre>
706
apiVersion: argoproj.io/v1alpha1
707
kind: Application
708
metadata:
709
  name: gitea-CUSTOMER
710
  namespace: argocd
711
spec:
712
  destination:
713
    namespace: default
714
    server: 'https://kubernetes.default.svc'
715
  source:
716
    path: apps/prod/gitea
717
    repoURL: 'https://code.ungleich.ch/ungleich-intern/k8s-config.git'
718
    targetRevision: HEAD
719
    helm:
720
      parameters:
721
        - name: storage.data.storageClass
722
          value: rook-ceph-block-hdd
723
        - name: storage.data.size
724
          value: 200Gi
725
        - name: storage.db.storageClass
726
          value: rook-ceph-block-ssd
727
        - name: storage.db.size
728
          value: 10Gi
729
        - name: storage.letsencrypt.storageClass
730
          value: rook-ceph-block-hdd
731
        - name: storage.letsencrypt.size
732
          value: 50Mi
733
        - name: letsencryptStaging
734
          value: 'no'
735
        - name: fqdn
736
          value: 'code.verua.online'
737
  project: default
738
  syncPolicy:
739
    automated:
740
      prune: true
741
      selfHeal: true
742
  info:
743
    - name: 'redmine-url'
744
      value: 'https://redmine.ungleich.ch/issues/ISSUEID'
745
    - name: 'support-url'
746
      value: 'https://support.ungleich.ch/Ticket/Display.html?id=TICKETID'
747
</pre>
748
749 80 Nico Schottelius
h2. Helm related operations and conventions
750 55 Nico Schottelius
751 61 Nico Schottelius
We use helm charts extensively.
752
753
* In production, they are managed via argocd
754
* In development, helm chart can de developed and deployed manually using the helm utility.
755
756 55 Nico Schottelius
h3. Installing a helm chart
757
758
One can use the usual pattern of
759
760
<pre>
761
helm install <releasename> <chartdirectory>
762
</pre>
763
764
However often you want to reinstall/update when testing helm charts. The following pattern is "better", because it allows you to reinstall, if it is already installed:
765
766
<pre>
767
helm upgrade --install <releasename> <chartdirectory>
768 1 Nico Schottelius
</pre>
769 80 Nico Schottelius
770
h3. Naming services and deployments in helm charts [Application labels]
771
772
* We always have {{ .Release.Name }} to identify the current "instance"
773
* Deployments:
774
** use @app: <what it is>@, f.i. @app: nginx@, @app: postgres@, ...
775 81 Nico Schottelius
* See more about standard labels on
776
** https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
777
** https://helm.sh/docs/chart_best_practices/labels/
778 55 Nico Schottelius
779 151 Nico Schottelius
h3. Show all versions of a helm chart
780
781
<pre>
782
helm search repo -l repo/chart
783
</pre>
784
785
For example:
786
787
<pre>
788
% helm search repo -l projectcalico/tigera-operator 
789
NAME                         	CHART VERSION	APP VERSION	DESCRIPTION                            
790
projectcalico/tigera-operator	v3.23.3      	v3.23.3    	Installs the Tigera operator for Calico
791
projectcalico/tigera-operator	v3.23.2      	v3.23.2    	Installs the Tigera operator for Calico
792
....
793
</pre>
794
795 152 Nico Schottelius
h3. Show possible values of a chart
796
797
<pre>
798
helm show values <repo/chart>
799
</pre>
800
801
Example:
802
803
<pre>
804
helm show values ingress-nginx/ingress-nginx
805
</pre>
806
807 178 Nico Schottelius
h3. Download a chart
808
809
For instance for checking it out locally. Use:
810
811
<pre>
812
helm pull <repo/chart>
813
</pre>
814 152 Nico Schottelius
815 139 Nico Schottelius
h2. Rook + Ceph
816
817
h3. Installation
818
819
* Usually directly via argocd
820
821
Manual steps:
822
823
<pre>
824
825
</pre>
826 43 Nico Schottelius
827 71 Nico Schottelius
h3. Executing ceph commands
828
829
Using the ceph-tools pod as follows:
830
831
<pre>
832
kubectl exec -n rook-ceph -ti $(kubectl -n rook-ceph get pods -l app=rook-ceph-tools -o jsonpath='{.items[*].metadata.name}') -- ceph -s
833
</pre>
834
835 43 Nico Schottelius
h3. Inspecting the logs of a specific server
836
837
<pre>
838
# Get the related pods
839
kubectl -n rook-ceph get pods -l app=rook-ceph-osd-prepare 
840
...
841
842
# Inspect the logs of a specific pod
843
kubectl -n rook-ceph logs -f rook-ceph-osd-prepare-server23--1-444qx
844
845 71 Nico Schottelius
</pre>
846
847
h3. Inspecting the logs of the rook-ceph-operator
848
849
<pre>
850
kubectl -n rook-ceph logs -f -l app=rook-ceph-operator
851 43 Nico Schottelius
</pre>
852
853 121 Nico Schottelius
h3. Restarting the rook operator
854
855
<pre>
856
kubectl -n rook-ceph delete pods  -l app=rook-ceph-operator
857
</pre>
858
859 43 Nico Schottelius
h3. Triggering server prepare / adding new osds
860
861
The rook-ceph-operator triggers/watches/creates pods to maintain hosts. To trigger a full "re scan", simply delete that pod:
862
863
<pre>
864
kubectl -n rook-ceph delete pods -l app=rook-ceph-operator
865
</pre>
866
867
This will cause all the @rook-ceph-osd-prepare-..@ jobs to be recreated and thus OSDs to be created, if new disks have been added.
868
869
h3. Removing an OSD
870
871
* See "Ceph OSD Management":https://rook.io/docs/rook/v1.7/ceph-osd-mgmt.html
872 77 Nico Schottelius
* More specifically: https://github.com/rook/rook/blob/release-1.7/cluster/examples/kubernetes/ceph/osd-purge.yaml
873 99 Nico Schottelius
* Then delete the related deployment
874 41 Nico Schottelius
875 98 Nico Schottelius
Set osd id in the osd-purge.yaml and apply it. OSD should be down before.
876
877
<pre>
878
apiVersion: batch/v1
879
kind: Job
880
metadata:
881
  name: rook-ceph-purge-osd
882
  namespace: rook-ceph # namespace:cluster
883
  labels:
884
    app: rook-ceph-purge-osd
885
spec:
886
  template:
887
    metadata:
888
      labels:
889
        app: rook-ceph-purge-osd
890
    spec:
891
      serviceAccountName: rook-ceph-purge-osd
892
      containers:
893
        - name: osd-removal
894
          image: rook/ceph:master
895
          # TODO: Insert the OSD ID in the last parameter that is to be removed
896
          # The OSD IDs are a comma-separated list. For example: "0" or "0,2".
897
          # If you want to preserve the OSD PVCs, set `--preserve-pvc true`.
898
          #
899
          # A --force-osd-removal option is available if the OSD should be destroyed even though the
900
          # removal could lead to data loss.
901
          args:
902
            - "ceph"
903
            - "osd"
904
            - "remove"
905
            - "--preserve-pvc"
906
            - "false"
907
            - "--force-osd-removal"
908
            - "false"
909
            - "--osd-ids"
910
            - "SETTHEOSDIDHERE"
911
          env:
912
            - name: POD_NAMESPACE
913
              valueFrom:
914
                fieldRef:
915
                  fieldPath: metadata.namespace
916
            - name: ROOK_MON_ENDPOINTS
917
              valueFrom:
918
                configMapKeyRef:
919
                  key: data
920
                  name: rook-ceph-mon-endpoints
921
            - name: ROOK_CEPH_USERNAME
922
              valueFrom:
923
                secretKeyRef:
924
                  key: ceph-username
925
                  name: rook-ceph-mon
926
            - name: ROOK_CEPH_SECRET
927
              valueFrom:
928
                secretKeyRef:
929
                  key: ceph-secret
930
                  name: rook-ceph-mon
931
            - name: ROOK_CONFIG_DIR
932
              value: /var/lib/rook
933
            - name: ROOK_CEPH_CONFIG_OVERRIDE
934
              value: /etc/rook/config/override.conf
935
            - name: ROOK_FSID
936
              valueFrom:
937
                secretKeyRef:
938
                  key: fsid
939
                  name: rook-ceph-mon
940
            - name: ROOK_LOG_LEVEL
941
              value: DEBUG
942
          volumeMounts:
943
            - mountPath: /etc/ceph
944
              name: ceph-conf-emptydir
945
            - mountPath: /var/lib/rook
946
              name: rook-config
947
      volumes:
948
        - emptyDir: {}
949
          name: ceph-conf-emptydir
950
        - emptyDir: {}
951
          name: rook-config
952
      restartPolicy: Never
953
954
955 99 Nico Schottelius
</pre>
956
957
Deleting the deployment:
958
959
<pre>
960
[18:05] bridge:~% kubectl -n rook-ceph delete deployment rook-ceph-osd-6
961
deployment.apps "rook-ceph-osd-6" deleted
962 98 Nico Schottelius
</pre>
963
964 145 Nico Schottelius
h2. Ingress + Cert Manager
965
966
* We deploy "nginx-ingress":https://docs.nginx.com/nginx-ingress-controller/ to get an ingress
967
* we deploy "cert-manager":https://cert-manager.io/ to handle certificates
968
* We independently deploy @ClusterIssuer@ to allow the cert-manager app to deploy and the issuer to be created once the CRDs from cert manager are in place
969
970
h3. IPv4 reachability 
971
972
The ingress is by default IPv6 only. To make it reachable from the IPv4 world, get its IPv6 address and configure a NAT64 mapping in Jool.
973
974
Steps:
975
976
h4. Get the ingress IPv6 address
977
978
Use @kubectl -n ingress-nginx get svc ingress-nginx-controller -o jsonpath='{.spec.clusterIP}'; echo ''@
979
980
Example:
981
982
<pre>
983
kubectl -n ingress-nginx get svc ingress-nginx-controller -o jsonpath='{.spec.clusterIP}'; echo ''
984
2a0a:e5c0:10:1b::ce11
985
</pre>
986
987
h4. Add NAT64 mapping
988
989
* Update the __dcl_jool_siit cdist type
990
* Record the two IPs (IPv6 and IPv4)
991
* Configure all routers
992
993
994
h4. Add DNS record
995
996
To use the ingress capable as a CNAME destination, create an "ingress" DNS record, such as:
997
998
<pre>
999
; k8s ingress for dev
1000
dev-ingress                 AAAA 2a0a:e5c0:10:1b::ce11
1001
dev-ingress                 A 147.78.194.23
1002
1003
</pre> 
1004
1005
h4. Add supporting wildcard DNS
1006
1007
If you plan to add various sites under a specific domain, we can add a wildcard DNS entry, such as *.k8s-dev.django-hosting.ch:
1008
1009
<pre>
1010
*.k8s-dev         CNAME dev-ingress.ungleich.ch.
1011
</pre>
1012
1013 76 Nico Schottelius
h2. Harbor
1014
1015 175 Nico Schottelius
* We user "Harbor":https://goharbor.io/ as an image registry for our own images. Internal app reference: apps/prod/harbor.
1016
* The admin password is in the password store, it is Harbor12345 by default
1017 76 Nico Schottelius
* At the moment harbor only authenticates against the internal ldap tree
1018
1019
h3. LDAP configuration
1020
1021
* The url needs to be ldaps://...
1022
* uid = uid
1023
* rest standard
1024 75 Nico Schottelius
1025 89 Nico Schottelius
h2. Monitoring / Prometheus
1026
1027 90 Nico Schottelius
* Via "kube-prometheus":https://github.com/prometheus-operator/kube-prometheus/
1028 89 Nico Schottelius
1029 91 Nico Schottelius
Access via ...
1030
1031
* http://prometheus-k8s.monitoring.svc:9090
1032
* http://grafana.monitoring.svc:3000
1033
* http://alertmanager.monitoring.svc:9093
1034
1035
1036 100 Nico Schottelius
h3. Prometheus Options
1037
1038
* "helm/kube-prometheus-stack":https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
1039
** Includes dashboards and co.
1040
* "manifest based kube-prometheus":https://github.com/prometheus-operator/kube-prometheus
1041
** Includes dashboards and co.
1042
* "Prometheus Operator (mainly CRD manifest":https://github.com/prometheus-operator/prometheus-operator
1043
1044 171 Nico Schottelius
h3. Grafana default password
1045
1046
* If not changed: @prom-operator@
1047
1048 82 Nico Schottelius
h2. Nextcloud
1049
1050 85 Nico Schottelius
h3. How to get the nextcloud credentials 
1051 84 Nico Schottelius
1052
* The initial username is set to "nextcloud"
1053
* The password is autogenerated and saved in a kubernetes secret
1054
1055
<pre>
1056 85 Nico Schottelius
kubectl get secret RELEASENAME-nextcloud -o jsonpath="{.data.PASSWORD}" | base64 -d; echo "" 
1057 84 Nico Schottelius
</pre>
1058
1059 83 Nico Schottelius
h3. How to fix "Access through untrusted domain"
1060
1061 82 Nico Schottelius
* Nextcloud stores the initial domain configuration
1062 1 Nico Schottelius
* If the FQDN is changed, it will show the error message "Access through untrusted domain"
1063 82 Nico Schottelius
* To fix, edit /var/www/html/config/config.php and correct the domain
1064 1 Nico Schottelius
* Then delete the pods
1065 165 Nico Schottelius
1066
h3. Running occ commands inside the nextcloud container
1067
1068
* Find the pod in the right namespace
1069
1070
Exec:
1071
1072
<pre>
1073
su www-data -s /bin/sh -c ./occ
1074
</pre>
1075
1076
* -s /bin/sh is needed as the default shell is set to /bin/false
1077
1078 166 Nico Schottelius
h4. Rescanning files
1079 165 Nico Schottelius
1080 166 Nico Schottelius
* If files have been added without nextcloud's knowledge
1081
1082
<pre>
1083
su www-data -s /bin/sh -c "./occ files:scan --all"
1084
</pre>
1085 82 Nico Schottelius
1086 1 Nico Schottelius
h2. Infrastructure versions
1087 35 Nico Schottelius
1088 57 Nico Schottelius
h3. ungleich kubernetes infrastructure v5 (2021-10)
1089 1 Nico Schottelius
1090 57 Nico Schottelius
Clusters are configured / setup in this order:
1091
1092
* Bootstrap via kubeadm
1093 59 Nico Schottelius
* "Networking via calico + BGP (non ECMP) using helm":https://docs.projectcalico.org/getting-started/kubernetes/helm
1094
* "ArgoCD for CD":https://argo-cd.readthedocs.io/en/stable/
1095
** "rook for storage via argocd":https://rook.io/
1096 58 Nico Schottelius
** haproxy for in IPv6-cluster-IPv4-to-IPv6 proxy via argocd
1097
** "kubernetes-secret-generator for in cluster secrets":https://github.com/mittwald/kubernetes-secret-generator
1098
** "ungleich-certbot managing certs and nginx":https://hub.docker.com/repository/docker/ungleich/ungleich-certbot
1099
1100 57 Nico Schottelius
1101
h3. ungleich kubernetes infrastructure v4 (2021-09)
1102
1103 54 Nico Schottelius
* rook is configured via manifests instead of using the rook-ceph-cluster helm chart
1104 1 Nico Schottelius
* The rook operator is still being installed via helm
1105 35 Nico Schottelius
1106 57 Nico Schottelius
h3. ungleich kubernetes infrastructure v3 (2021-07)
1107 1 Nico Schottelius
1108 10 Nico Schottelius
* rook is now installed via helm via argocd instead of directly via manifests
1109 28 Nico Schottelius
1110 57 Nico Schottelius
h3. ungleich kubernetes infrastructure v2 (2021-05)
1111 28 Nico Schottelius
1112
* Replaced fluxv2 from ungleich k8s v1 with argocd
1113 1 Nico Schottelius
** argocd can apply helm templates directly without needing to go through Chart releases
1114 28 Nico Schottelius
* We are also using argoflow for build flows
1115
* Planned to add "kaniko":https://github.com/GoogleContainerTools/kaniko for image building
1116
1117 57 Nico Schottelius
h3. ungleich kubernetes infrastructure v1 (2021-01)
1118 28 Nico Schottelius
1119
We are using the following components:
1120
1121
* "Calico as a CNI":https://www.projectcalico.org/ with BGP, IPv6 only, no encapsulation
1122
** Needed for basic networking
1123
* "kubernetes-secret-generator":https://github.com/mittwald/kubernetes-secret-generator for creating secrets
1124
** Needed so that secrets are not stored in the git repository, but only in the cluster
1125
* "ungleich-certbot":https://hub.docker.com/repository/docker/ungleich/ungleich-certbot
1126
** Needed to get letsencrypt certificates for services
1127
* "rook with ceph rbd + cephfs":https://rook.io/ for storage
1128
** rbd for almost everything, *ReadWriteOnce*
1129
** cephfs for smaller things, multi access *ReadWriteMany*
1130
** Needed for providing persistent storage
1131
* "flux v2":https://fluxcd.io/
1132
** Needed to manage resources automatically