kyma-project / cli

Simple set of commands to manage a Kyma installation
Apache License 2.0
111 stars 118 forks source link

Produce token based kubeconfig originating from ServiceAccount via kyma cli #2036

Closed kwiatekus closed 1 month ago

kwiatekus commented 2 months ago

Description

Provide a command that produces a kubeconfig file that includes token for a specially created service account that is bound to a cluster-admin role.

Command should (using --kubeconfig):

Sth like kyma alpha access --clusterrole={clusterRoleName} --kubeconfig={inputKubeconfig} --output=kubeconfig-sa.yaml --name={my-service-account}, where:

Reasons It doesn't yet solve getting a kubeconfig for a freshly created cluster in automated way, but it reduces effort of manual configuration for the time until we finally solve the problem. Kyma users are forced to do it (see example) until there is a real solution

Attachments