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 scheduler manifest contains incorrect flag #2716

Closed
vipinjn24 opened this issue Jun 29, 2022 · 3 comments
Closed

Kubeadm scheduler manifest contains incorrect flag #2716

vipinjn24 opened this issue Jun 29, 2022 · 3 comments
Labels
area/upgrades priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@vipinjn24
Copy link

Error: unknown flag: --address

BUG REPORT

After upgrading from 1.23.8 to 1.24.2 I saw that my pods are not getting scheduled. so I checked the issue and found that kube-scheduler is in error due to an old flag i.e. --address, however in 1.24 it is changed to --bind-address.

Versions

kubeadm version : 1.24.2

Environment:

  • Kubernetes version: 1.24.2
  • Cloud provider or hardware configuration: Bare-metal
  • OS (e.g. from /etc/os-release): ubuntu 22.04
  • Kernel (e.g. uname -a): Linux vjs-net-in 5.15.0-30-generic The product_uuid and the hostname should be unique across nodes #31-Ubuntu SMP Thu May 5 10:00:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Container runtime (CRI) (e.g. containerd, cri-o): containerd
  • Container networking plugin (CNI) (e.g. Calico, Cilium): Calico
  • Others:

What happened?

Pods not getting scheduled after upgrade to 1.24.x

What you expected to happen?

Pods should be scheduled.

How to reproduce it (as minimally and precisely as possible)?

Install or upgrade kubernetes to 1.24.x

Anything else we need to know?

I was able to resolve the issue by running the below command.
sudo sed -i -e 's/--address=0.0.0.0/--bind-address=0.0.0.0/' /etc/kubernetes/manifests/kube-scheduler.yaml

Please fix the issue in upcoming versions.

@neolit123
Copy link
Member

are you sure you did not add the flag manually?
what are the contents of your kubeadm config file and kubectl get cm -n kube-system kubeadm-config -o yaml?

we have e2e upgrade tests and this problem is not present there:
https://k8s-testgrid.appspot.com/sig-cluster-lifecycle-kubeadm#kubeadm-kinder-upgrade-1-23-1-24

@neolit123 neolit123 added area/upgrades priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Jun 29, 2022
@neolit123 neolit123 added this to the v1.25 milestone Jun 29, 2022
@vipinjn24
Copy link
Author

@neolit123 Great thankyou for pointing out the problem. However just wanted to know how to change the existing config?

@neolit123
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/upgrades priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

2 participants