Skip to content

running openshift on localhost with auth proxy makes kubelet queries impossible #1424

Closed
@TomasTomecek

Description

@TomasTomecek

Setup

openshift

openshift start --loglevel=5 --listen=https://127.0.0.1:8443 --master=https://127.0.0.1:8443

httpd

apache listens on remotely accesible network interface and forwards everything to localhost:

https://<address>:8443 → https://localhost:8443
https://<address>:10250 → https://localhost:10250

We have kerberos authentication in the apache proxy, meaning everything what access' https://<address>:10250 has to have valid kerberos ticket. And that's the problem.

Issue

kubelet is attached to localhost and when openshift tries to make calls to it, it's going through proxy and not through localhost (which is somewhat obvious).

The main reason we are exposing kubelet in proxy is to get container logs.

Would it possible to configure openshift in a way so it would try to reach out to kubelet via localhost and not the public address (or hostname)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions