-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Cannot pass extra config parameters to kube-apiserver #6543
Comments
extra-config for apiserver works if you set kubernetes-version=v1.13.10 |
It makes sense as starting from 1.14.0, the kubeadm v1beta1 template is used, containing a default setting for apiServer
which is not merged with the ones coming from extra-config Before 1.14.0, the template has a different key
which is this time not conflicting with extra-config values generated under the apiServer key |
Good catch! Thank you for the detailed bug report. It seems there is definitely missing coverage in our integration tests (and unit tests!) for this feature. This seems entirely fixable. Help wanted! |
This looks like an easy fix thanks to the detailed feedback. I'll try to send a PR out for it today. |
Does someone mind testing whether or not #6547 fixes their use case? Here are pre-built binaries: https://storage.googleapis.com/minikube-builds/6547/minikube-darwin-amd64 |
The linux binary works for me. Running If I apply a manifest that adds cassandra nodeport service, it succeeds with the binary from build 6547. If I do the same thing with minikube v1.7.1, it always fails with |
@ggreer - Thank you for the confirmation. We'll ship v1.7.2 today to fix this regression. |
Using --extra-config does not work anymore for kube-apiserver
Minikube version: 1.7.1
Kubernetes version: 1.17.2
The operating system version: Win7
The exact command to reproduce the issue:
minikube start --extra-config=apiserver.runtime-config=apps/v1beta1=true,apps/v1beta2=true,extensions/v1beta1/daemonsets=true,extensions/v1beta1/deployments=true,extensions/v1beta1/replicasets=true,extensions/v1beta1/networkpolicies=true,extensions/v1beta1/podsecuritypolicies=true
The full output of the command that failed:
no kind statefulset is registered for version apps/v1beta1
The output of the
minikube logs
command:The kube-apiserver extra configuration is not passed anymore as we can see below (there is no --runtime-config flag)
Possible cause is the template used to generate the kubeadm config which when --extra-config for kube-apiserver is used will generate the apiServer key twice
It was working with minikube 1.16 as the generated key for certSANs was not under apiServer key before (and we had only one apiServer key with the extra config)
The text was updated successfully, but these errors were encountered: