Skip to content

Commit 0079d25

Browse files
authored
🐛 Fix kube-vip apiserver load balancer (#175)
* Add managedSubnets only for non-kube-vip apiserver_loadbalancer Signed-off-by: Roman Hros <[email protected]> * Enable apiServerLoadBalancer only for octavia LB Signed-off-by: Roman Hros <[email protected]> --------- Signed-off-by: Roman Hros <[email protected]>
1 parent 404abc1 commit 0079d25

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

providers/openstack/scs/cluster-class/templates/cluster-class.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ cre ate group names like oidc:engineering and oidc:infra."
356356
matchResources:
357357
infrastructureCluster: true
358358
jsonPatches:
359-
- op: add
359+
- op: replace
360360
path: "/spec/template/spec/apiServerLoadBalancer/enabled"
361361
value: true
362362
- op: add
@@ -372,7 +372,7 @@ cre ate group names like oidc:engineering and oidc:infra."
372372
matchResources:
373373
infrastructureCluster: true
374374
jsonPatches:
375-
- op: add
375+
- op: replace
376376
path: "/spec/template/spec/apiServerLoadBalancer/enabled"
377377
value: true
378378
- op: add
@@ -812,7 +812,7 @@ cre ate group names like oidc:engineering and oidc:infra."
812812
matchResources:
813813
infrastructureCluster: true
814814
jsonPatches:
815-
- op: replace
815+
- op: add
816816
path: "/spec/template/spec/managedSubnets"
817817
valueFrom:
818818
template: |

providers/openstack/scs/cluster-class/templates/openstack-cluster-template.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,3 @@ spec:
4545
portRangeMax: 4244
4646
protocol: tcp
4747
description: "Allow Hubble traffic for Cilium"
48-
managedSubnets:
49-
- cidr: {{ .Values.node_cidr }}
50-
dnsNameservers:
51-
{{- range .Values.dns_nameservers }}
52-
- {{ . }}
53-
{{- end }}

providers/openstack/scs/cluster-class/values.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# mirrored from variables.tf
2-
dns_nameservers:
3-
- 5.1.66.255
4-
- 185.150.99.255
52
controller_flavor: SCS-2V-4-20
63
worker_flavor: SCS-2V-4-20
7-
node_cidr: 10.8.0.0/20
84
restrict_kubeapi: []
95

106
# newly introduced:
11-
openstack_loadbalancer_apiserver: true
7+
openstack_loadbalancer_apiserver: false
128

139
# TBD, currently needed:
1410
images:

0 commit comments

Comments
 (0)