Add instructions for how to install and use the configs

main
trivernis 7 months ago
parent 0ae164cbbf
commit 51c7e6080b
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1 +1,12 @@
# My flux cd cluster setup
# My flux cd cluster setup
## Initial cluster setup
Follow the steps outlined in [SETUP.md](./cluster/SETUP.md).
## Repo structure
After deploying [flux](https://fluxcd.io) on the cluster and pointing
it to this repo it should be able to create all the apps defined in the
[apps folder](./apps). For the sealed secrets the private key has to be deployed
on the cluster. Otherwise those secrets need to be recreated.

@ -0,0 +1,29 @@
# Additional manual steps
## Cluster Setup
```bash
# new first server node
curl -sfL https://get.k3s.io | K3S_TOKEN=<shared-token> sh -s - server \
--cluster-init \
--cluster-cidr="10.243.0.0/16" \
--flannel-backend=wireguard-native \
--write-kubeconfig-mode=644 \
--disable local-storage \
--node-name="$(hostname -f)" \
--kube-controller-manager-arg="bind-address=0.0.0.0" \
--kube-proxy-arg="metrics-bind-address=0.0.0.0" \
--kube-scheduler-arg="bind-address=0.0.0.0"
# second server node
curl -sfL https://get.k3s.io | K3S_TOKEN=<shared-token> sh -s - server \
--server https://<server-ip>:6443 \
--cluster-cidr="10.243.0.0/16" \
--flannel-backend=wireguard-native \
--write-kubeconfig-mode=644 \
--disable local-storage \
--node-name="$(hostname -f)" \
--kube-controller-manager-arg="bind-address=0.0.0.0" \
--kube-proxy-arg="metrics-bind-address=0.0.0.0" \
--kube-scheduler-arg="bind-address=0.0.0.0"
```
Loading…
Cancel
Save