Skip to content

Issue with k8s.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/ #27931

Closed

Description

@sam-sre

Hi,

In this document, In this section
https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#kubelet-serving-certs

It is mentioned that in order to make the metrics-server works probably, you have to edit the ConfigMap as shown

If you have already created the cluster you must adapt it by doing the following:

Find and edit the kubelet-config-1.21 ConfigMap in the kube-system namespace. In that ConfigMap, the config key has a KubeletConfiguration document as its value. Edit the KubeletConfiguration document to set serverTLSBootstrap: true.

But in a kubeadm deployed cluster, there is no config key in the kubelet-config-1.21 ConfigMap ..
There is this:

 data:
    kubelet: |
      apiVersion: kubelet.config.k8s.io/v1beta1
      kind: KubeletConfiguration

Which you can not edit as described in the document.
The metrics-server is not working due to this issue..

Activity

  1. added
    needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.
    on May 10, 2021
  2. neolit123 commented on May 10, 2021

    @neolit123
    Member

    thanks for the report.
    the key should be renamed from config to kubelet in https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#kubelet-serving-certs

    PRs welcome.

    /triage accepted
    /sig cluster-lifecycle
    /kind bug

  3. added
    triage/acceptedIndicates an issue or PR is ready to be actively worked on.
    sig/cluster-lifecycleCategorizes an issue or PR as relevant to SIG Cluster Lifecycle.
    kind/bugCategorizes issue or PR as related to a bug.
    and removed
    needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.
    on May 10, 2021
  4. neolit123 commented on May 17, 2021

    @neolit123
    Member

    /help

  5. k8s-ci-robot commented on May 17, 2021

    @k8s-ci-robot
    Contributor

    @neolit123:
    This request has been marked as needing help from a contributor.

    Please ensure the request meets the requirements listed here.

    If this request no longer meets these requirements, the label can be removed
    by commenting with the /remove-help command.

    Details

    In response to this:

    /help

    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.

  6. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.sig/cluster-lifecycleCategorizes an issue or PR as relevant to SIG Cluster Lifecycle.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions