Skip to content

Commit

Permalink
Set --service-cluster-ip-range= to CCM based on actual network status…
Browse files Browse the repository at this point in the history
… and config

Signed-off-by: Artiom Diomin <artiom.diomin@sap.com>
  • Loading branch information
kron4eg committed Nov 5, 2024
1 parent 430461e commit a4564cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ spec:
- --allocate-node-cidrs=true
- --cloud-provider=gce
- --cloud-config=/etc/kubernetes/cloudprovider/cloudprovider.conf
- --service-cluster-ip-range=10.96.0.0/12,fd00::/108
- --cluster-cidr={{ .Values.podNetwork }}
- --service-cluster-ip-range={{ .Values.serviceNetwork }}
- --cluster-name={{ .Values.clusterName }}
- --cidr-allocator-type={{ .Values.allocatorType }}
- --concurrent-service-syncs=10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ allocatorType: CloudAllocator
clusterName: shoot-foo-bar
kubernetesVersion: 1.27.5
podNetwork: 192.168.0.0/16
serviceNetwork: 10.96.0.0/12
podAnnotations: {}
podLabels: {}
featureGates: {}
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/controlplane/valuesprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ func (vp *valuesProvider) getCCMChartValues(
"clusterName": cp.Namespace,
"kubernetesVersion": cluster.Shoot.Spec.Kubernetes.Version,
"podNetwork": strings.Join(extensionscontroller.GetPodNetwork(cluster), ","),
"serviceNetwork": strings.Join(extensionscontroller.GetServiceNetwork(cluster), ","),
"podAnnotations": map[string]interface{}{
"checksum/secret-" + v1beta1constants.SecretNameCloudProvider: checksums[v1beta1constants.SecretNameCloudProvider],
"checksum/configmap-" + internal.CloudProviderConfigName: checksums[internal.CloudProviderConfigName],
Expand Down

0 comments on commit a4564cd

Please sign in to comment.