Skip to content

allow passing --as argument to kubectl to impersonate (ex: get elevated permissions) #216

Open
@bmm-alc

Description

@bmm-alc

While administration config of my cluster gives us a limited access by default, and require us to pass --as cluster-admin to kubectl to grant admin permissions.
Without this I cannot attach

(⎈|k8s-practical-shamir:default)cheddar at ~/bin ❯ ./kafkactl attach                   
Error from server (Forbidden): pods is forbidden: User "oidc:[email protected]" cannot create resource "pods" in API group "" in the namespace "foobar"
command "/home/me/bin/kubectl" exited with non-zero status

I modified the config file to add

binary: kubectl --as cluster-admin

but it does not work.

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