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

Revert kubelet server tls bootstrap (backport to v5) #1257

Merged
merged 1 commit into from
Jul 16, 2020
Merged

Revert kubelet server tls bootstrap (backport to v5) #1257

merged 1 commit into from
Jul 16, 2020

Conversation

jenting
Copy link

@jenting jenting commented Jul 15, 2020

Why is this PR needed?

when the admin upgrades from 1.17 -> 1.18, the admin would do:

  • skuba node upgrade apply (loop all control plane nodes and worker nodes)
  • skuba addon upgrade apply

then at the first control plane node upgrade, usually the admin checks all the pods in the stable state, however, since the first control node sets serverTLSBootstrap: true which means it sends out kubelet server CSR in the cluster but there is no CSR signer right now (kucero installed later in skuba addon upgrade apply).

therefore, the metrics-server would be crash loopback state because the kubelet server does not have it's server certificate right now (it seems like the kubelet does not honor in-disk kubelet.crt which is generated by skuba if serverTLSBootstrap: true.

What does this PR do?

  • remove kucero in 1.17 version
  • disable kubelet serverTLSBootstrap: true but instead skuba generates the kubelet server certificate

Anything else a reviewer needs to know?

It's a backport PR to release-caasp-5.0.0, related to #1248.

Info for QA

This is info for QA so that they can validate this. This is mandatory if this PR fixes a bug.
If this is a new feature, a good description in "What does this PR do" may be enough.

Related info

Info that can be relevant for QA:

  • link to other PRs that should be merged together
  • link to packages that should be released together
  • upstream issues

Status BEFORE applying the patch

The kubelet configuration /var/lib/kubelet/config.yaml would have serverTLSBootstrap: true in fresh install or upgraded cluster.

Status AFTER applying the patch

The kubelet configuration /var/lib/kubelet/config.yaml would not have serverTLSBootstrap: true in fresh install or upgraded cluster.

Docs

If docs need to be updated, please add a link to a PR to https://github.com/SUSE/doc-caasp.
At the time of creating the issue, this PR can be work in progress (set its title to [WIP]),
but the documentation needs to be finalized before the PR can be merged.

Merge restrictions

(Please do not edit this)

We are in v4-maintenance phase, so we will restrict what can be merged to prevent unexpected surprises:

What can be merged (merge criteria):
    2 approvals:
        1 developer: code is fine
        1 QA: QA is fine
    there is a PR for updating documentation (or a statement that this is not needed)

when the admin upgrades from 1.17 -> 1.18, the admin would do:
- skuba node upgrade apply (loop all control plane nodes and worker nodes)
- skuba addon upgrade apply

then at the first control plane node upgrade, usually the admin checks all the pods in the stable state, however, since the first control node sets `serverTLSBootstrap: true` which means it sends out kubelet server CSR in the cluster but there is no CSR signer right now (kucero installed later in `skuba addon upgrade apply`).

therefore, the metrics-server would be crash loopback state because the kubelet server does not have it's server certificate right now (it seems like the kubelet does not honor in-disk kubelet.crt which is generated by skuba if `serverTLSBootstrap: true`.

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
@jenting jenting self-assigned this Jul 15, 2020
@jenting jenting changed the title Revert kubelet server tls bootstrap (#1248) Revert kubelet server tls bootstrap (backport to v5) Jul 15, 2020
@jenting jenting removed the 5.0.0 label Jul 15, 2020
@innobead innobead merged commit 996eac5 into SUSE:release-caasp-5.0.0 Jul 16, 2020
@jenting jenting deleted the release-caasp-5.0.0 branch July 16, 2020 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants