Skip to content

remove usage of flexvolume in kubeadm #2135

Open
@neolit123

Description

@neolit123

distroless effort:
kubernetes/kubernetes#70249

see this message from sig-storage https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/kubernetes-dev/zC8jCLg142w/2P3BN5oTAgAJ

We are gauging the viability of deprecating the Flexvolume master API calls.
...
There is an effort underway to move to core k8s component images to distroless.

kube-apiserver and kube-scheduler already moved to distroless, but the kube-controller-manager was blocked due to flexvolume. kube-proxy is yet to move too.

currently kubeadm has related logic to manage flex volumes for the kube-controller-manager static Pod:

  - hostPath:
      path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec
      type: DirectoryOrCreate
    name: flexvolume-dir
    - mountPath: /usr/libexec/kubernetes/kubelet-plugins/volume/exec
      name: flexvolume-dir

IIRC the above is currently GA and required for the KCM to run properly.
in case the KCM / kubelet deprecates and remove flexvoluime support kubeadm should follow.

upstream ticket:
kubernetes/kubernetes#98815

Metadata

Metadata

Assignees

Labels

area/ecosystemkind/deprecationCategorizes issue or PR as related to a feature/enhancement marked for deprecation.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions