diff --git a/readme.md b/readme.md index 092c801..0c85ef1 100644 --- a/readme.md +++ b/readme.md @@ -36,7 +36,9 @@ The new setup of my homelab will be based on Kubernetes, which will prevent all - Forgejo: Git platform. Maybe this should not be hosted on the cluster as it will depend on it. - CloudNativePG: K8s operator for PostgreSQL -## Bootstrapping +## Installing + +### Configuration ```bash export CLUSTER_NAME="veda" @@ -95,6 +97,51 @@ talosctl gen config \ $API_ENDPOINT ``` +Then change the endpoint in the Talos client configuration: + +```yaml +# ~/.talos/config +context: veda +contexts: + veda: + endpoints: + - 192.168.0.1 +# (...) +``` + +### Bootstrapping + +Apply the configuration to each node: + +```bash +talosctl apply-config --insecure --file rendered/master1.yaml --nodes 192.168.0.10 +``` + +Optionally, check the status. + +```bash +talosctl -n 192.168.0.10 dashboard +``` + +To start the cluster, we need to bootstrap the etcd cluster. +This only has to be done for a single node. + +```bash +talosctl -n 192.168.0.10 +``` + +Finally, retrieve the kubeconfig, it will merge with `~/.kube/config`, if it exists. + +```bash +talosctl -n 192.168.0.10 kubeconfig +``` + +Check nodes: + +```bash +talosctl get nodes +``` + ## TODO - Remove secrets from config