mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
new cluster
This commit is contained in:
38
README.md
38
README.md
@@ -1,6 +1,7 @@
|
||||
<img src="https://camo.githubusercontent.com/5b298bf6b0596795602bd771c5bddbb963e83e0f/68747470733a2f2f692e696d6775722e636f6d2f7031527a586a512e706e67" align="left" width="144px" height="144px"/>
|
||||
|
||||
### My home Kubernetes cluster :sailboat:
|
||||
|
||||
_... managed by Flux and serviced with RenovateBot_ :robot:
|
||||
|
||||
<br/>
|
||||
@@ -8,11 +9,10 @@ _... managed by Flux and serviced with RenovateBot_ :robot:
|
||||
<br/>
|
||||
|
||||
[](https://discord.gg/AvJxRMRf6H)
|
||||
[](https://k3s.io/)
|
||||
[](https://k3s.io/)
|
||||
[](https://github.com/pre-commit/pre-commit)
|
||||
[](https://github.com/renovatebot/renovate)
|
||||
|
||||
|
||||
### Bootstrap Flux
|
||||
|
||||
```bash
|
||||
@@ -24,6 +24,7 @@ flux bootstrap github \
|
||||
--personal \
|
||||
--network-policy=false
|
||||
```
|
||||
|
||||
### SOPS secret from GPG key
|
||||
|
||||
```bash
|
||||
@@ -40,28 +41,23 @@ sops --encrypt --pgp=<GPG_KEY_ID> --encrypted-regex '^(data|stringData)$' --in-p
|
||||
|
||||
```bash
|
||||
|
||||
kubectl taint node k3os-server k3s-controlplane=true:NoSchedule
|
||||
kubectl taint node k3s-server k3s-controlplane=true:NoSchedule
|
||||
|
||||
kubectl label node k3os-worker1 node-role.kubernetes.io/worker=true
|
||||
kubectl label node k3os-worker2 node-role.kubernetes.io/worker=true
|
||||
kubectl label node k3os-worker3 node-role.kubernetes.io/worker=true
|
||||
kubectl label node k3s-worker1 node-role.kubernetes.io/worker=true
|
||||
kubectl label node k3s-worker2 node-role.kubernetes.io/worker=true
|
||||
kubectl label node k3s-worker3 node-role.kubernetes.io/worker=true
|
||||
|
||||
kubectl annotate node k3os-worker1 node.longhorn.io/default-node-tags='["storage","fast"]'
|
||||
kubectl annotate node k3os-worker2 node.longhorn.io/default-node-tags='["storage","fast"]'
|
||||
kubectl annotate node k3os-worker3 node.longhorn.io/default-node-tags='["storage","fast"]'
|
||||
kubectl annotate node k3s-worker1 node.longhorn.io/default-node-tags='["storage","fast"]'
|
||||
kubectl annotate node k3s-worker2 node.longhorn.io/default-node-tags='["storage","fast"]'
|
||||
kubectl annotate node k3s-worker3 node.longhorn.io/default-node-tags='["storage","fast"]'
|
||||
|
||||
kubectl annotate node k3os-worker1 node.longhorn.io/create-default-disk='config'
|
||||
kubectl annotate node k3os-worker2 node.longhorn.io/create-default-disk='config'
|
||||
kubectl annotate node k3os-worker3 node.longhorn.io/create-default-disk='config'
|
||||
kubectl annotate node k3s-worker1 node.longhorn.io/create-default-disk='config'
|
||||
kubectl annotate node k3s-worker2 node.longhorn.io/create-default-disk='config'
|
||||
kubectl annotate node k3s-worker3 node.longhorn.io/create-default-disk='config'
|
||||
|
||||
kubectl annotate node k3os-worker1 node.longhorn.io/default-disks-config=[ { "name":"fast-ssd-disk", "path":"/var/lib/longhorn", "allowScheduling":true, "storageReserved":304857600, "tags":[ "ssd", "fast" ] }]
|
||||
kubectl annotate node k3os-worker2 node.longhorn.io/default-disks-config=[ { "name":"fast-ssd-disk", "path":"/var/lib/longhorn", "allowScheduling":true, "storageReserved":304857600, "tags":[ "ssd", "fast" ] }]
|
||||
kubectl annotate node k3os-worker3 node.longhorn.io/default-disks-config=[ { "name":"fast-ssd-disk", "path":"/var/lib/longhorn", "allowScheduling":true, "storageReserved":304857600, "tags":[ "ssd", "fast" ] }]
|
||||
|
||||
#kubectl label node k3os-server plan.upgrade.cattle.io/k3os-latest=true
|
||||
#kubectl label node k3os-worker1 plan.upgrade.cattle.io/k3os-latest=true
|
||||
#kubectl label node k3os-worker2 plan.upgrade.cattle.io/k3os-latest=true
|
||||
#kubectl label node k3os-worker3 plan.upgrade.cattle.io/k3os-latest=true
|
||||
kubectl annotate node k3s-worker1 node.longhorn.io/default-disks-config=[ { "name":"fast-ssd-disk", "path":"/var/lib/longhorn", "allowScheduling":true, "storageReserved":304857600, "tags":[ "ssd", "fast" ] }]
|
||||
kubectl annotate node k3s-worker2 node.longhorn.io/default-disks-config=[ { "name":"fast-ssd-disk", "path":"/var/lib/longhorn", "allowScheduling":true, "storageReserved":304857600, "tags":[ "ssd", "fast" ] }]
|
||||
kubectl annotate node k3s-worker3 node.longhorn.io/default-disks-config=[ { "name":"fast-ssd-disk", "path":"/var/lib/longhorn", "allowScheduling":true, "storageReserved":304857600, "tags":[ "ssd", "fast" ] }]
|
||||
```
|
||||
|
||||
https://github.com/rancher/k3s/issues/1401 for k3os-system deployment
|
||||
https://github.com/rancher/k3s/issues/1401 for k3s-system deployment
|
||||
|
Reference in New Issue
Block a user