Skip to content

dchaykin/kube-config-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kube-config-creator

Go app to create .kube/config for a service account

Prerequisites

You must have an admin access to the kubernetes cluster in order to be able to create a new kube-config file.

How to use kube-config-creator

kube-config-creator --kubeconfig=[PATH_TO_ADMIN_CONFIG_FILE]

Input:

  • Service Account (mandatory): name of the service account to be created in the kubernetes cluster. If such service account already exists, it will be used without changing anything.
  • Namespace (optional): namespace that the service account is going to be created in. If empty, default will be used.

Output:

  • File kube-config-<SERVICE_ACCOUNT>.yaml. Copy this file into your ${HOME}/.kube/config to activate the account.

Note

This app creates a config file for a service account (ready for use), but does not set up any roles or rolebindings in the cluster. You as administrator still have to configure the access to the cluster resources by creating RBAC-policies.

About

Go app to create .kube/config for a service account

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages