Update README with installation and bootstrapping instructions for Talos
This commit is contained in:
parent
598d6f4a41
commit
d9036a503b
49
readme.md
49
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.
|
- Forgejo: Git platform. Maybe this should not be hosted on the cluster as it will depend on it.
|
||||||
- CloudNativePG: K8s operator for PostgreSQL
|
- CloudNativePG: K8s operator for PostgreSQL
|
||||||
|
|
||||||
## Bootstrapping
|
## Installing
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export CLUSTER_NAME="veda"
|
export CLUSTER_NAME="veda"
|
||||||
@ -95,6 +97,51 @@ talosctl gen config \
|
|||||||
$API_ENDPOINT
|
$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
|
## TODO
|
||||||
|
|
||||||
- Remove secrets from config
|
- Remove secrets from config
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user