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

kubeadm: not use CRI socket annotation on the Node object #3929

Closed
4 tasks
pacoxu opened this issue Mar 30, 2023 · 14 comments
Closed
4 tasks

kubeadm: not use CRI socket annotation on the Node object #3929

pacoxu opened this issue Mar 30, 2023 · 14 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle.

Comments

@pacoxu
Copy link
Member

pacoxu commented Mar 30, 2023

Enhancement Description

  • One-line enhancement description (can be used as a release note): in theory we don't need the CRI socket annotation on the Node object that kubeadm does any more.
  • Kubernetes Enhancement Proposal:
  • Discussion Link: do not annotate the Node CRI socket in the "init upload-config" phase kubeadm#1924
  • Primary contact (assignee): pacoxu
  • Responsible SIGs: cluster-lifecycle
  • Enhancement target (which target equals to which milestone):
    • Alpha release target (x.y): 1.28
    • Beta release target (x.y): 1.29
    • Stable release target (x.y): 1.31
  • Alpha
    • KEP (k/enhancements) update PR(s):
    • Code (k/k) update PR(s):
    • Docs (k/website) update PR(s):

Key concerns that why this needs a KEP in kubernetes/kubeadm#1924 (comment)

  • Users can use any CRI on different hosts, and the endpoint would be written on the Node object. If the CRI field is global in KubeletConfiguration managed by kubeadm, user settings during kubeadm join must override downloaded global configuration before being written to disk for kubelet consumption with --config. Kubeadm upgrade re-downloads KubeletConfiguration from cluster on each upgrade, but user settings of preferred CRI socket only persist in kubelet config file on disk. Kubeadm needs to store CRI socket configuration from disk to apply host-specific configuration and stop passing flag for CRI endpoint while assuming fields in config are set.
  1. init: upload a global kubelet configuration with cri socket
  2. join: can override it using --config
  3. upgrade: re-download global one, but should use local kubelet configuration firstly

In one word, no annotation is needed, and it is replaced by a configuration in kubelet.

@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Mar 30, 2023
@pacoxu
Copy link
Member Author

pacoxu commented Mar 30, 2023

/sig cluster-lifecycle
/area kubeadm

@k8s-ci-robot
Copy link
Contributor

@pacoxu: The label(s) area/kubeadm cannot be applied, because the repository doesn't have them.

In response to this:

/sig cluster-lifecycle
/area kubeadm

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.

@k8s-ci-robot k8s-ci-robot added sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Mar 30, 2023
@neolit123
Copy link
Member

Kubeadm needs to store CRI socket configuration from disk to apply host-specific configuration and stop passing flag for CRI endpoint while assuming fields in config are set.

one question will be where / how do we persist this host specific config.

could be just on upgrade we read the already used value from config on disc in memory. download global config and patch the value from memory before writing to disk.

@pacoxu
Copy link
Member Author

pacoxu commented Mar 30, 2023

In the past, we save KUBELET_KUBEADM_ARGS="--container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=k8s.m.daocloud.io/pause:3.9" in /var/lib/kubelet/kubeadm-flags.env.

Should we add a /var/lib/kubelet/kubeadm-config.yaml which is a node specific configurations for kubelet? We can do a merge/overwrite using it with the re-downloaded global configuration during kubeadm upgrade.

@neolit123
Copy link
Member

Should we add a /var/lib/kubelet/kubeadm-config.yaml which is a node specific configurations for kubelet?

sounds like an interesting idea. would like to see what others think too.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 28, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@vaibhav2107
Copy link
Member

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 1, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 25, 2024
@neolit123
Copy link
Member

@pacoxu should we freeze this one?
i would assume you don't have bandwidth for it.

@pacoxu
Copy link
Member Author

pacoxu commented Jan 29, 2024

@pacoxu should we freeze this one?
i would assume you don't have bandwidth for it.

And the upgrade plan for this is not clear and may introduce more complexity/work(than I thought it was) on kubeadm.

/close

@k8s-ci-robot
Copy link
Contributor

@pacoxu: Closing this issue.

In response to this:

@pacoxu should we freeze this one?
i would assume you don't have bandwidth for it.

And the upgrade plan for this is not clear and may introduce more complexity/work on kubeadm.

/close

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.

@neolit123
Copy link
Member

And the upgrade plan for this is not clear and may introduce more complexity/work on kubeadm.

i think it's in the right direction, though.
the Node annotation is a bit of a hack.

@pacoxu
Copy link
Member Author

pacoxu commented Jan 29, 2024

And the upgrade plan for this is not clear and may introduce more complexity/work on kubeadm.

i think it's in the right direction, though. the Node annotation is a bit of a hack.

Yes, It is still a valid change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle.
Projects
None yet
Development

No branches or pull requests

5 participants