Skip to content

Commit bbabbb2

Browse files
Remove ControlPlaneEndpoint from cluster-template.yaml because it will be set automatically (#59)
1 parent 2f1fb98 commit bbabbb2

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ endef
247247
export METAL_PARTITION ?= mini-lab
248248
export METAL_PROJECT_ID ?= 00000000-0000-0000-0000-000000000001
249249
export METAL_NODE_NETWORK_ID ?= $(shell metalctl network list --name metal-test -o template --template '{{ .id }}')
250-
export CONTROL_PLANE_ENDPOINT ?= "203.0.113.129:443"
251250
export CONTROL_PLANE_MACHINE_IMAGE ?= ubuntu-24.04
252251
export CONTROL_PLANE_MACHINE_SIZE ?= v1-small-x86
253252
export WORKER_MACHINE_IMAGE ?= ubuntu-24.04

config/clusterctl-templates/cluster-template.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,11 @@ spec:
6565
name: ${CLUSTER_NAME}-controlplane
6666
kubeadmConfigSpec:
6767
format: ignition
68-
clusterConfiguration:
69-
controlPlaneEndpoint: ${CONTROL_PLANE_ENDPOINT}
68+
clusterConfiguration: {}
7069
initConfiguration:
7170
localAPIEndpoint:
7271
advertiseAddress: 127.0.0.1
73-
bindPort: ${CONTROL_PLANE_PORT:=443}
72+
bindPort: 443
7473
nodeRegistration: {}
7574
joinConfiguration:
7675
controlPlane: {}
@@ -117,7 +116,6 @@ spec:
117116
template:
118117
spec:
119118
format: ignition
120-
clusterConfiguration:
121-
controlPlaneEndpoint: ${CONTROL_PLANE_ENDPOINT}
119+
clusterConfiguration: {}
122120
joinConfiguration:
123121
nodeRegistration: {}

config/clusterctl-templates/example_variables.rc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export FIREWALL_MACHINE_SIZE=v1-small-x86
1010
export FIREWALL_MACHINE_IMAGE=
1111
export FIREWALL_NETWORKS=[internet]
1212

13-
export CONTROL_PLANE_ENDPOINT=203.0.113.129:443
14-
export CONTROL_PLANE_PORT=443
1513
export CONTROL_PLANE_MACHINE_SIZE=v1-small-x86
1614
export CONTROL_PLANE_MACHINE_IMAGE=ubuntu-24.04
1715

0 commit comments

Comments
 (0)