kube-config-creator

command module
v0.0.0-...-025fcb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 7 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL