-
Notifications
You must be signed in to change notification settings - Fork 219
hack/quickstart: enable setting kubelet cloud provider separately from controller manager #804
Conversation
Can one of the admins verify this patch? |
3 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Doesn't the flag need to be updated on KCM (and apiserver, though it's not used for anything) as well? |
Not per the doc: https://kubernetes.io/docs/tasks/administer-cluster/running-cloud-controller/#running-cloud-controller-manager
|
Very interesting. I've seen it working with apiserver and kcm specifying Let me touch base with the I guess you're not stripping the flag, so it's expected that the user then set |
|
The text was changed in 1.8 I think, please keep me updated I'm also a bit confused. |
Looks like the PR I'm thinking of is here: kubernetes/kubernetes#52371 For now, let's go ahead and leave this as-is. When this PR merges and 1.10 is out, we can revisit and activate the extra flag to keep volumes working until CCM+CSI is ready and the flag is deprecated again. Source for the info, @dims, from Slack. Thanks @dims! For historical sake: colemickens [1:55 PM] colemickens dims [2:18 PM] colemickens [2:23 PM] [2:23] [2:23] dims [2:24 PM] |
coreosbot test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
coreosbot test this please |
Can one of the admins verify this patch? |
Has anyone set this up? Where are the materials on it? It's still listed as untested. Is the understanding that this flag is to enable experimenting with CCM? |
CCM is still experimental, I don't think we would accept a PR to add it to bootkube yet. This PR just lets you set the kubelet cloud controller separately from the controller manager. It seems fine in that respect. |
Let's not have a title like "Support CCM (Cloud Controller Manager)" then. |
Otherwise, no complaints with allowing it in the hack scripts to facilitate experiments / adoption. |
Updated the PR title. Will amend the commit and push as well. (edit: Got confused, thought this was my CCM PR, but it's not. I had similar changes for |
So I just did a quick testing (after rebasing) of this and it isn't working. When |
…m controller manager Running a cloud-controller-manager require kubelet to be started with `--cloud-provider=external` and `kube-apiserver` and `kube-controller-manager` without the `--cloud-provider` flag or a empty string [1]. This commit make it possible to specific `--cloud-provider` for `kubelet` without specifying a cloud-provider for `kube-apiserver` and `kube-controller-manager` with the new env option CLOUD_PROVIDER_KUBELET, the option use CLOUD_PROVIDER as fallback if not set. [1] https://kubernetes.io/docs/tasks/administer-cluster/running-cloud-controller/#running-cloud-controller-manager
Someone has already reported this upstream: kubernetes/kubernetes#54965 (but the "bug" was later closed), so at the moment it seems we end up in a chicken-egg situation no matter what we do. |
The help page seems to be incorrect at the moment (a Let set this on hold until then. |
@klausenbusk Can you please elaborate? There's confusion about a couple of things:
|
Also, have you filed an upstream bug for the CCM/podIP behavior, or this general issue? I presume others would be affected by this, if it's a fundamental problem, especially as kubeadm matures and embraces self-hosting. |
The help text is wrong, a blank
It is the CCM job to run the
See: kubernetes/kubernetes#55633 and kubernetes/kubernetes#50545 |
I guess I'm still a bit confused because I had CCM working with bootkube in a I don't really understand why hostIP needs to be known to know the podIP. The pod and host network are often different anyway (overlay/underlay/physical/etc). |
Firstly, they don't seems to be using TLS bootstrapping, which isn't supported at the moment with a CCM (kubernetes/kubernetes#55633).
When the pod is started with |
Any updates on this? I'm also fine with the option to specify kubelet cloud provider separately in the hack scripts - but not sure if there were still some outstanding issues. |
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
I think it should work now with kubernetes/kubernetes#65594 merged, but I'm not sure and nevertheless we need to wait for 1.12. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Running a cloud-controller-manager require kubelet to be started
with
--cloud-provider=external
andkube-apiserver
andkube-controller-manager
without the--cloud-provider
flag or aempty string [1].
This commit make it possible to specific
--cloud-provider
forkubelet
without specifying a cloud-provider forkube-apiserver
and
kube-controller-manager
with the new env optionCLOUD_PROVIDER_KUBELET, the option use CLOUD_PROVIDER as fallback
if not set.
[1] https://kubernetes.io/docs/tasks/administer-cluster/running-cloud-controller/#running-cloud-controller-manager
Not tested yet.
As this is the future, I think it make sense to add a extra option.