Skip to content

Commit 4e912b4

Browse files
authored
Merge pull request #5345 from damdo/update-templates-to-use-nlbs
⚠️ templates: use NLB as Control Plane Load Balancer type
2 parents 8cc4beb + 0e95b2b commit 4e912b4

5 files changed

+17
-2
lines changed

templates/cluster-template-flatcar.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ metadata:
2626
spec:
2727
region: "${AWS_REGION}"
2828
sshKeyName: "${AWS_SSH_KEY_NAME}"
29+
controlPlaneLoadBalancer:
30+
loadBalancerType: nlb
31+
healthCheckProtocol: HTTPS
2932
s3Bucket:
3033
controlPlaneIAMInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io
3134
name: "${AWS_S3_BUCKET_NAME}"

templates/cluster-template-machinepool.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ kind: AWSCluster
2424
metadata:
2525
name: "${CLUSTER_NAME}"
2626
spec:
27+
controlPlaneLoadBalancer:
28+
loadBalancerType: nlb
29+
healthCheckProtocol: HTTPS
2730
region: "${AWS_REGION}"
2831
sshKeyName: "${AWS_SSH_KEY_NAME}"
2932
---

templates/cluster-template-multitenancy-clusterclass.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ metadata:
150150
name: multi-tenancy
151151
spec:
152152
template:
153-
spec: {}
153+
spec:
154+
controlPlaneLoadBalancer:
155+
loadBalancerType: nlb
156+
healthCheckProtocol: HTTPS
154157
---
155158
kind: KubeadmControlPlaneTemplate
156159
apiVersion: controlplane.cluster.x-k8s.io/v1beta1

templates/cluster-template-simple-clusterclass.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ metadata:
159159
name: quick-start
160160
spec:
161161
template:
162-
spec: { }
162+
spec:
163+
controlPlaneLoadBalancer:
164+
loadBalancerType: nlb
165+
healthCheckProtocol: HTTPS
163166
---
164167
kind: KubeadmControlPlaneTemplate
165168
apiVersion: controlplane.cluster.x-k8s.io/v1beta1

templates/cluster-template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ kind: AWSCluster
2424
metadata:
2525
name: "${CLUSTER_NAME}"
2626
spec:
27+
controlPlaneLoadBalancer:
28+
loadBalancerType: nlb
29+
healthCheckProtocol: HTTPS
2730
region: "${AWS_REGION}"
2831
sshKeyName: "${AWS_SSH_KEY_NAME}"
2932
---

0 commit comments

Comments
 (0)