-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path07-gen-talos.sh
executable file
·30 lines (25 loc) · 982 Bytes
/
07-gen-talos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
source 00-setup.sh
LB_PUBLIC_IP=$(az network public-ip show \
--resource-group $GROUP \
--name talos-cp \
--query [ipAddress] \
--output tsv)
CONTROL_PLANE_0_IP=$(az network public-ip show \
--resource-group $GROUP \
--name talos-controlplane-public-ip-0 \
--query [ipAddress] \
--output tsv)
CONTROL_PLANE_1_IP=$(az network public-ip show \
--resource-group $GROUP \
--name talos-controlplane-public-ip-1 \
--query [ipAddress] \
--output tsv)
CONTROL_PLANE_2_IP=$(az network public-ip show \
--resource-group $GROUP \
--name talos-controlplane-public-ip-2 \
--query [ipAddress] \
--output tsv)
talosctl gen config $CLUSTER_NAME \
https://${LB_PUBLIC_IP}:6443 \
--config-patch-control-plane "$(jq -c . config-patch-controlplane.json)"