Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Managed cluster should ensure control plane operator: Allow hypershift kapi proxy #26579

Merged
merged 1 commit into from Nov 16, 2021

Conversation

alvaroaleman
Copy link
Contributor

@alvaroaleman alvaroaleman commented Nov 8, 2021

This pod is used in Hypershift to proxy the connection to the kube
apiserver from nodes. As even the kubelet uses it, it has to be a static
pod and that results in a keyless noExecute toleration being added by
the node.

Ref https://issues.redhat.com/browse/HOSTEDCP-257

@alvaroaleman
Copy link
Contributor Author

/retest-required

@alvaroaleman
Copy link
Contributor Author

/assign bparees

@bparees
Copy link
Contributor

bparees commented Nov 10, 2021

why is this not already a problem? (presumably because the pods fetched by the test in question don't actually include static pods).

and if it's a new problem specific to hypershift topologies then i'm not understanding why, when does hypershift create static pods that would fail this test?

@alvaroaleman
Copy link
Contributor Author

@bparees thanks for your feedback. The reason this must be a static pod and can not be a workload that lives in the API is that IBM uses it to loadblance the kubelet -> apiserver connection, so it has to be up before the kubelet contacts the apiserver: openshift/hypershift#685 (review)

@bparees
Copy link
Contributor

bparees commented Nov 16, 2021

i'm still not understanding what is new/novel about the static pods that hypershift is creating, as compared to the static pods that already exist and don't cause this test to fail?

@@ -31,7 +31,7 @@ var _ = Describe("[sig-arch] Managed cluster should", func() {
namespacePrefixes := sets.NewString("kube-", "openshift-")
excludedNamespaces := sets.NewString("openshift-kube-apiserver", "openshift-kube-controller-manager", "openshift-kube-scheduler", "openshift-etcd", "openshift-openstack-infra", "openshift-ovirt-infra")
// exclude these pods from checks
whitelistPods := sets.NewString("network-operator", "dns-operator", "olm-operators", "gcp-routes-controller", "ovnkube-master", "must-gather")
whitelistPods := sets.NewString("network-operator", "dns-operator", "olm-operators", "gcp-routes-controller", "ovnkube-master", "must-gather", "kube-apiserver-proxy")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add the pod name to the whitelist and add logic to generally exclude staticpods?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is wrong, I am happy to do either

@alvaroaleman
Copy link
Contributor Author

i'm still not understanding what is new/novel about the static pods that hypershift is creating, as compared to the static pods that already exist and don't cause this test to fail?

@bparees nothing, the existing static pods are explicitly excluded instead. I don't really have an opinion on either approach, any favorite?

@bparees
Copy link
Contributor

bparees commented Nov 16, 2021

@bparees nothing, the existing static pods are explicitly excluded instead. I don't really have an opinion on either approach, any favorite?

i think i prefer the explicit whitelist approach, it avoids the risk that we are ignoring pods we shouldn't be.

@alvaroaleman alvaroaleman changed the title Managed cluster should ensure control plane operator: Allow static pods Managed cluster should ensure control plane operator: Allow hypershift kapi proxy Nov 16, 2021
@alvaroaleman
Copy link
Contributor Author

i think i prefer the explicit whitelist approach, it avoids the risk that we are ignoring pods we shouldn't be.

Thanks, updated the change to do that.

@@ -32,6 +32,8 @@ var _ = Describe("[sig-arch] Managed cluster should", func() {
excludedNamespaces := sets.NewString("openshift-kube-apiserver", "openshift-kube-controller-manager", "openshift-kube-scheduler", "openshift-etcd", "openshift-openstack-infra", "openshift-ovirt-infra")
// exclude these pods from checks
whitelistPods := sets.NewString("network-operator", "dns-operator", "olm-operators", "gcp-routes-controller", "ovnkube-master", "must-gather")
// The kube-apiserver proxy exists only in Hypershift
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please give this a full comment on why it is being whitelisted (e.g. the summary from your PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

…t kapi proxy

This pod is used in Hypershift to proxy the connection to the kube
apiserver from nodes. As even the kubelet uses it, it has to be a static
pod and that results in a keyless noExecute toleration being added by
the node.

Ref https://issues.redhat.com/browse/HOSTEDCP-257
@bparees
Copy link
Contributor

bparees commented Nov 16, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 16, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 16, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, bparees

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 16, 2021
@openshift-merge-robot openshift-merge-robot merged commit e8e54bd into openshift:master Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants