-
Notifications
You must be signed in to change notification settings - Fork 712
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
k8s: Make possible and simple to deploy a Scope probe in master node #1030
Comments
Thanks for raising this, @2opremio. Right now I cannot think of a good solution, but let's think of it. |
After asking in the kubernetes Slack Channel, I was pointed to https://github.com/kubernetes/kubernetes/blob/80ff0cbbda4418ab40a383e08ab6f55244219e52/docs/design/taint-toleration-dedicated.md Apparently the master node is just a another node marked as Full conversation transcript: https://kubernetes.slack.com/archives/kubernetes-users/p1456341662005360 |
Also, it seems that after 1.2 DaemonSets will also deployed to master so it may be a matter of waiting. Another thing we could try is hardcoding the nodename of a pod to the master node and see if that works. |
Sounds good, as long as we consider master without kubelet being a rare case, which is probably true for those using vanilla setup. I have considered changing Kubernetes Anywhere to adhere to the self-hosting model, however, in my opinion, at least in it's current state, this model hardly makes things easy to understand. We certainly need to enable majority of users with an existing cluster, however improving the Kubernetes probe itself should be the priority. |
Would be great to double-check if this might imply that GKE will also allow users to schedule pods on master, which I don't believe would feasible, as users generally don't have access to master on GKE. |
Running Kubernetes probe requires authentication, so I think the only recommended way should be to use DaemonSets, for best user experience. Running probes on kubelet-less master is just like running it on other external machines, and authentication to Kubernetes API is not required there, only app discovery is a problem to consider. Of the top of my head, examples of projects which don't use self-hosting model (kubelet-less master) are:
There are many more, one way to check is by searching for |
I haven't found a way to fix this for kubernetes 1.1 . On top of the options mentioned above, there's |
We should confirm this but it seems kubernetes 1.2 will deploy the probes in the master node:
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md |
Can confirm, this works:
|
Reopening since we should document this will only work for versions >=1.2 |
So am I getting this correct that it's all about putting scope in |
No, the namespace is completely unrelated. The problem was probes were not being scheduled on unschedulable hosts. As of kube 1.2 they are. End of story. |
@tomwilkie ok, thanks. |
The current k8s instructions https://github.com/weaveworks/scope#using-weave-scope-with-kubernetes result in Scope probes only deployed in the worker nodes but not on master.
CC @errordeveloper
The text was updated successfully, but these errors were encountered: