Trying to use config patch instead
This commit is contained in:
parent
251f6d305d
commit
bae8ad96da
1 changed files with 2 additions and 14 deletions
|
|
@ -75,24 +75,12 @@ resource "null_resource" "talos_cluster" {
|
|||
--workers 0 \
|
||||
--memory ${self.triggers.memory_mb} \
|
||||
--cpus ${self.triggers.vcpu_count} \
|
||||
--skip-kubeconfig
|
||||
--talosconfig "${path.module}/configs/talosconfig" \
|
||||
--config-patch-control-plane @"${path.module}/configs/controlplane-patch.yaml"
|
||||
|
||||
# Change ownership of the generated files in ~/.talos and ~/.kube
|
||||
sudo chown -R $(id -u):$(id -g) $HOME/.talos
|
||||
sudo chown -R $(id -u):$(id -g) $HOME/.kube
|
||||
|
||||
# Apply our pre-generated configuration
|
||||
echo "Applying Talos configuration..."
|
||||
talosctl apply-config --insecure --nodes 10.5.0.2 --file configs/controlplane.yaml
|
||||
|
||||
# Bootstrap the cluster using our pre-generated talosconfig
|
||||
echo "Bootstrapping cluster..."
|
||||
talosctl --talosconfig configs/talosconfig bootstrap --nodes 10.5.0.2
|
||||
|
||||
# Get kubeconfig
|
||||
echo "Generating kubeconfig..."
|
||||
talosctl --talosconfig configs/talosconfig kubeconfig --nodes 10.5.0.2
|
||||
|
||||
EOT
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue