ungleich-k8s/k8s/c0/README.md

42 lines
1 KiB
Markdown
Raw Normal View History

2021-07-11 12:29:43 +00:00
## c0.k8s.ooo
Base cluster for managing other clusters.
## Bootstrap Control Plane
* apu1: `kubeadm init --config k8s/c0/kubeadm.yaml --upload-certs`
* apu2: `kubeadm join api.c0.k8s.ooo:6443 ...`
* apu3: `kubeadm join api.c0.k8s.ooo:6443 ...`
Removing taints, self contained cluster:
```
kubectl taint nodes --all node-role.kubernetes.io/master-
```
## Bootstrapping networking
```
mount --make-shared /sys
mount --make-shared /run
kubectl apply -f v3-calico/calico.yaml
kubectl apply -f https://docs.projectcalico.org/manifests/calicoctl.yaml
2021-07-11 14:11:15 +00:00
2021-07-11 12:29:43 +00:00
alias calicoctl="kubectl exec -i -n kube-system calicoctl -- /calicoctl"
2021-07-11 14:11:15 +00:00
calicoctl create -f - < ./k8s/c0/calico-bgp.yaml
```
## Flux bootstrap
On a client:
```
wget https://github.com/fluxcd/flux2/releases/download/v0.16.1/flux_0.16.1_linux_amd64.tar.gz
tar xvfz flux_0.16.1_linux_amd64.tar.gz
./flux bootstrap git --path=./cluster/c0 --cluster-domain c0.k8s.ooo --url ssh://git@code.ungleich.ch/ungleich-intern/k8s-config.git --branch=main
2021-07-11 12:29:43 +00:00
```
2021-07-11 14:11:15 +00:00
## rook bootstrap
* via flux