48 lines
1.4 KiB
Bash
Executable File
48 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
CLUSTER_NAME="eis-mk8-prod"
|
|
ENDPOINTS=10.51.10.101
|
|
CONTROL_PLANE="https://ctl.prod.k8.eis-mk8.de.s5b.org:6443"
|
|
SECRETS="secrets.yaml"
|
|
|
|
|
|
# talosctl gen config \
|
|
# $CLUSTER_NAME \
|
|
# $CONTROL_PLANE \
|
|
# --with-secrets $SECRETS \
|
|
# --config-patch @patches/00_all.yaml \
|
|
# --config-patch-control-plane @patches/10_control_plane.yaml \
|
|
# --config-patch-worker @patches/20_worker.yaml \
|
|
|
|
|
|
for i in ctl-1 ctl-2 ctl-3; do
|
|
echo "Configuring CONTROLPLANE host $i"
|
|
talosctl machineconfig patch \
|
|
controlplane.yaml \
|
|
-p @patches/00_all.yaml \
|
|
-p @patches/10_control_plane.yaml \
|
|
-p @patches/machines/$i.yaml \
|
|
--output transient/$i.yaml
|
|
# -p @patches/11_cilium.yaml \
|
|
talosctl apply-config \
|
|
--nodes $i \
|
|
--endpoints $ENDPOINTS \
|
|
--talosconfig=./talosconfig \
|
|
--file transient/$i.yaml
|
|
done
|
|
|
|
# for i in node-1 node-2 node-3; do
|
|
# echo "Configuring WORKER host $i"
|
|
# talosctl machineconfig patch \
|
|
# worker.yaml \
|
|
# -p @patches/00_all.yaml \
|
|
# -p @patches/20_worker.yaml \
|
|
# -p @patches/machines/$i.yaml \
|
|
# --output transient/$i.yaml
|
|
|
|
# # talosctl apply-config \
|
|
# # --nodes $i \
|
|
# # --endpoints $ENDPOINTS \
|
|
# # --talosconfig=./talosconfig \
|
|
# # --file transient/$i.yaml
|
|
# done |