[release-4.12] OCPBUGS-7467: add configurable KAS advertise address#1360
Conversation
Adds an internal IP to kubernetes service. Pods will use an internal IP to connect to KAS, while external clients will use the node IP. Solves ambiguity problem when selecting which certificate to return to a client, based on the destination IP (KAS). Configures the service IP to the loopback interface so that the endpoint slice for kubernetes service matches the same IP.
To follow service CIDR configuration options, and to allow forcing a different IP, a new configuration parameter is introduced. This will come in handy when setting extra nodes. Also excludes the node IP in the external serving certificate if the KAS advertise address matches the node IP.
Defaults KAS advertise address to always follow the service CIDR from configuration. If this CIDR is changed before starting MicroShift, the KAS advertise address (and therefore the secondary IP to lo interface) will be in that range.
Avoid adding the secondary IP to lo interface when KAS advertise address has been forced to an IP in a different range than service network CIDR.
Use a new service to configure loopback interface in the node if required by the KAS advertise address. Kube apiserver service will depend on this one before starting.
|
@openshift-cherrypick-robot: all tests passed! 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/test-infra repository. I understand the commands that are listed here. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhellmann, openshift-cherrypick-robot 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 |
|
/label cherry-pick-approved |
|
/retitle [release-4.12] OCPBUGS-7467: add configurable KAS advertise address |
|
@openshift-cherrypick-robot: No Bugzilla bug is referenced in the title of this pull request. 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 kubernetes/test-infra repository. |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-7467, 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 kubernetes/test-infra repository. |
|
/jira refresh |
|
@dhellmann: This pull request references Jira Issue OCPBUGS-7467, which is invalid:
Comment 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 kubernetes/test-infra repository. |
|
/jira refresh |
|
@dhellmann: This pull request references Jira Issue OCPBUGS-7467, which is invalid:
Comment 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 kubernetes/test-infra repository. |
|
/jira refresh |
|
@dhellmann: This pull request references Jira Issue OCPBUGS-7467, which is invalid:
Comment 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 kubernetes/test-infra repository. |
|
/jira refresh |
|
@dhellmann: This pull request references Jira Issue OCPBUGS-7467, which is valid. 6 validation(s) were run on this bug
Requesting review from QA contact: 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 kubernetes/test-infra repository. |
|
@openshift-cherrypick-robot: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-7467 has been moved to the MODIFIED state. 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 kubernetes/test-infra repository. |
This is an automated cherry-pick of #1298
/assign dhellmann