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

OpenShift Wrong Kubelet Port #3104

Closed
johnfosborneiii opened this issue Mar 7, 2018 · 4 comments
Closed

OpenShift Wrong Kubelet Port #3104

johnfosborneiii opened this issue Mar 7, 2018 · 4 comments

Comments

@johnfosborneiii
Copy link

Hi tried running through the install instructions for OpenShift and there were a few issues:

  1. I had to modify all the scope.yaml namespace instances to weave-scope instead of weave
  2. The agent is hard coded to look for the kubelet on port 10255 when on OpenShift it runs on 10250.

I was able to get past the first issue by manually changing the YAML, but there's no ConfigMap or Env Variable etc to modify what kubelet port the agent tries to use.

@bboreham
Copy link
Collaborator

bboreham commented Mar 8, 2018

Hi, thanks for the report!

Can you clarify why you needed to change the namespace? We run all Scope probes in the weave namespace in our own clusters, but we don't run OpenShift.

Would you like to make a PR to improve the docs for OpenShift?

If you set KUBERNETES_NODENAME it won't bother trying to call kubelet - you can do it in the yaml something like this:

    spec:
      containers:
        env:
        - name: KUBERNETES_NODENAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: spec.nodeName

This way is more efficient too.

@bboreham
Copy link
Collaborator

Sorry, @Mikerr1111, I couldn’t connect that to any of the foregoing. Please explain how it fits.

@rade
Copy link
Member

rade commented Mar 15, 2018

The agent is hard coded to look for the kubelet on port 10255 when on OpenShift it runs on 10250.

You can configure the kubelet port to connect to with --probe.kubernetes.kubelet-port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@rade @bboreham @johnfosborneiii and others