-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrei Kvapil <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,16 @@ sudo mv ./talos-bootstrap /usr/local/bin/talos-bootstrap | |
- Create a directory for holding your cluster configuration. | ||
- Run `talos-bootstrap` command for every node in your cluster. | ||
|
||
# Customizations | ||
|
||
You can specify your customizations in one of the following files: | ||
|
||
- `patch.yaml` - common settings used for all nodes. | ||
- `patch-controlplane.yaml` - settings used for controlplane nodes only | ||
- `patch-worker.yaml` - settings used for worker nodes only | ||
|
||
Read the [Configuration Patches](https://www.talos.dev/latest/talos-guides/configuration/patching/) documentation for more details. | ||
|
||
# Copyright | ||
|
||
Andrei Kvapil <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,7 +194,18 @@ node="$address" | |
if [ ! -f secrets.yaml ]; then | ||
talosctl gen secrets >/dev/null 2>&1 | ||
fi | ||
talosctl gen config "$cluster_name" --with-secrets=secrets.yaml "$k8s_endpoint" --config-patch="$machine_config" --force >/dev/null 2>&1 | ||
patches="" | ||
if [ -f patch.yaml ]; then | ||
patches="$patches [email protected]" | ||
fi | ||
if [ -f patch-controlplane.yaml ]; then | ||
patches="$patches [email protected]" | ||
fi | ||
if [ -f patch-worker.yaml ]; then | ||
patches="$patches [email protected]" | ||
fi | ||
talosctl gen config "$cluster_name" --with-secrets=secrets.yaml "$k8s_endpoint" $patches --config-patch="$machine_config" --force >/dev/null 2>&1 | ||
|
||
printf "%s\nXXX\n%s\n%s\nXXX\n" "1" "Applying configuration..." | ||
talosctl --talosconfig=talosconfig apply -e "$bootstrap_ip" -n "$bootstrap_ip" -f controlplane.yaml -i >/dev/null 2>&1 | ||
|
||
|