Skip to content

[question] Can kube-gen be restricted to a namespace? #18

@lhriley

Description

@lhriley

Currently it seems that kube-gen requires a ClusterRole in order to work. It appears that there aren't any controls for limiting the scope of kube-gen to a specific namespace.

For our use case, we want to run https://github.com/kylemcc/kube-nginx-proxy in certain namespaces, and only generate nginx configurations for services / pods within the same namespace. In this scenario, we would also want to only use namespace scoped roles, not cluster scoped roles.

Is this currently possible? Maybe using environment variables or undocumented flags?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions