Skip to content

ezgh kubernetes access-entries create

Give a principal access to a cluster.

Updated View as Markdown
ezgh kubernetes access-entries create --cluster c --principal p [--principal-type t] [--kubernetes-group g]... [--policy name[:ns,…]]... [flags]

Give an EZGH principal access to a cluster. --principal is a bot (bot_…), an EZGH SSO user (usr_…) or a group (grp_…), or with --principal-type user a user’s ID. --policy is clusterAdmin, admin, edit or view: alone for the whole cluster, or name:ns1,ns2 for those namespaces.

Part of ezgh kubernetes access-entries.

Examples

ezgh kubernetes access-entries create --cluster prod --principal grp_7t3n1v8c2wzd --policy edit:web,api

Flags

Flag Type Default Description
--cluster string the cluster
--kubernetes-group string, repeatable a Kubernetes group the principal is in; repeat for more
--policy string, repeatable an access policy, name or name:ns1,ns2; repeat for more
--principal string a bot (bot_…), an SSO user (usr_…), a group (grp_…), or a user’s ID
--principal-type string user, bot, ssoUser or group: needed with a user’s ID

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close