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 Fails Due to Valid Argument #354

Closed
plombardi89 opened this issue Jul 22, 2017 · 7 comments
Closed

Kubeadm Fails Due to Valid Argument #354

plombardi89 opened this issue Jul 22, 2017 · 7 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@plombardi89
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened: Running kubeadm init --config=<path> fails.

What you expected to happen: kubeadm init --config=<path> configures based on the provided file.

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

Create a file /tmp/kubeadm.yaml with the below content:

---
apiVersion: kubeadm.k8s.io/v1alpha1
kind: MasterConfiguration
token: m52zte.m52ztet6s1jknlpg
cloudProvider: aws
kubernetesVersion: v1.7.1
apiServerCertSANs:
- plombardi.kubernaut.io

Run kubeadm init --config=/tmp/kubeadm.yaml

Get error:

kubeadm init --config /tmp/kubeadm.yaml
[kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters.
[init] Using Kubernetes version: v1.7.1
[init] Using Authorization modes: [Node RBAC]
[init] WARNING: For cloudprovider integrations to work --cloud-provider must be set for all kubelets in the cluster.
	(/etc/systemd/system/kubelet.service.d/10-kubeadm.conf should be edited for this purpose)
[preflight] Running pre-flight checks
[preflight] WARNING: docker version is greater than the most recently validated version. Docker version: 17.06.0-ce. Max validated version: 1.12
can not mix '--config' with other arguments

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): NA

  • Cloud provider or hardware configuration**: AWS

  • OS (e.g. from /etc/os-release): CentOS 7.3 1703_01

  • Kernel (e.g. uname -a): Linux ip-10-10-0-216.ec2.internal 3.10.0-514.26.2.el7.x86_64 kubeadm join on slave node fails preflight checks #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

  • Install tools:

  • Others: Kubeadm Version = kubeadm version: &version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.1", GitCommit:"1dc5c66f5dd61da08412a74221ecc79208c2165b", GitTreeState:"clean", BuildDate:"2017-07-14T01:48:01Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 22, 2017
@plombardi89
Copy link
Author

Just noticed there is a potential fix noted in #345

I'll leave this open until 1.7.2 hits epel repo and there is a chance to try it out.

@aanm
Copy link

aanm commented Jul 24, 2017

I'm also getting this!

@luxas
Copy link
Member

luxas commented Jul 24, 2017

I have a fix for this up that will be in v1.7.3. v1.7.2 might work for you as well.
Sorry for any inconvenience

@aanm
Copy link

aanm commented Jul 24, 2017

@plombardi89 FYI kubeadmn 1.7.0 doesn't have this bug.
you can install it with apt-get install kubeadm=1.7.0-00

@pipejakob
Copy link
Contributor

Hey @plombardi89, were you able to confirm that kubeadm 1.7.3 fixes this issue for you?

@plombardi89
Copy link
Author

@pipejakob I have not confirmed. I might have some time tomorrow to give it a whirl.

@luxas
Copy link
Member

luxas commented Aug 14, 2017

Closing this as it should be fixed with v1.7.3, reopen if not

@luxas luxas closed this as completed Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

5 participants