OCPBUGS-119240: gcp: allow GCD load balancer health-check firewall ranges - #10853
OCPBUGS-119240: gcp: allow GCD load balancer health-check firewall ranges#10853patrickdillon wants to merge 1 commit into
Conversation
GCD regions have unique source IP addresses for load-balancer health probes that are distinct from GCP. So for GCD installs we need to populate the source based on the region/soverign data center. These ranges cannot be determined programmatically (e.g. via API), so they must be hard-coded. With this approach, unforunately, any new region will need to be manually updated; although, BYO firewall rules can be used until that time. Additionally, cloud-provider-gcp creates service-type LoadBalancer health-check firewall rules using the public GCP ranges, which GCD rejects, and it cannot be configured with the correct ranges. So this commit pre-creates a rule with the correct ranges, covering both externalTrafficPolicy=Cluster (10256) and =Local (the dynamic healthCheckNodePort range). While this opens a wide range of ports the source is tightly scoped to a well-known IP. Fixes: OCPBUGS-114882, OCPBUGS-112662
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
/jira cherrypick OCPBUGS-119104 |
|
@patrickdillon: Jira Issue OCPBUGS-119104 has been cloned as Jira Issue OCPBUGS-119240. Will retitle bug to link to clone. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@patrickdillon: This pull request references Jira Issue OCPBUGS-119240, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/testwith openshift/installer/release-4.22/e2e-gcd-ovn-private-techpreview openshift/cloud-provider-gcp#141 openshift/machine-api-provider-gcp#193 openshift/image-registry#476 openshift/gcp-pd-csi-driver#129 openshift/cloud-credential-operator#1083 openshift/cluster-image-registry-operator#1364 openshift/cluster-ingress-operator#1564 openshift/cloud-network-config-controller#264 |
|
@patrickdillon: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/testwith openshift/installer/release-4.22/e2e-gcd-ovn-private-techpreview openshift/cloud-provider-gcp#141 openshift/machine-api-provider-gcp#193 openshift/image-registry#476 openshift/gcp-pd-csi-driver#129 openshift/cloud-credential-operator#1083 openshift/cluster-image-registry-operator#1364 openshift/cluster-ingress-operator#1564 openshift/cloud-network-config-controller#264 |
|
multi-pr test failed to start due to a collision. this is a problem with the test setup code. openning a bug |
|
/testwith openshift/installer/release-4.22/e2e-gcd-ovn-private-techpreview openshift/cloud-provider-gcp#141 openshift/machine-api-provider-gcp#193 openshift/image-registry#476 openshift/gcp-pd-csi-driver#129 openshift/cloud-credential-operator#1083 openshift/cluster-image-registry-operator#1364 openshift/cluster-ingress-operator#1564 openshift/cloud-network-config-controller#264 |
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tthvo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
GCD regions have unique source IP addresses for load-balancer health probes that are distinct from GCP. So for GCD installs we need to populate the source based on the region/soverign data center. These ranges cannot be determined programmatically (e.g. via API), so they must be hard-coded. With this approach, unforunately, any new region will need to be manually updated; although, BYO firewall rules can be used until that time.
Additionally, cloud-provider-gcp creates service-type LoadBalancer health-check firewall rules using the public GCP ranges, which GCD rejects, and it cannot be configured with the correct ranges. So this commit pre-creates a rule with the correct ranges, covering both externalTrafficPolicy=Cluster (10256) and =Local (the dynamic healthCheckNodePort range). While this opens a wide range of ports the source is tightly scoped to a well-known IP.