Skip to content

Again: KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined #339

Closed
@sadedil

Description

@sadedil

I know this is same with the #285, but there is something strange about the v1.6.8.

Today I've update KubernetesClient Version from 1.6.5 to 1.6.8, then I've started to receiving this error. Then rollback and problem solved.

I've checked (with env command) the all other pods, all of them has KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT environment variables. No problem.

I think there is a race problem, maybe the v1.6.8 has some performance improvements and environment variables loaded after the code checked this values.

P.S. This is not an RBAC issue. My SA has enough permission.

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