Service-Hub icon indicating copy to clipboard operation
Service-Hub copied to clipboard

Render kubectl-kubeconfig plugin template.

Open vadim-zabolotniy opened this issue 2 years ago • 0 comments

The user gets from UI

curl kubeconfig.jovianx.app | bash -s <JWT_TOKEN>

The path kubeconfig.jovianx.app provides a bash script that accepts parameters:

Param Desc Default
JTW_TOKEN The JWT Token to use when pushing a Kubecofnig ""
SERVICE_HUB_HOST The Server to push a Kubeconfig https://hub.jovianx.app
CONTEXT The context used for generating a Kubeconfig $(kubectl config current-context)

The script runs the following actions

  1. Generates a kubeconfig for given context
  2. Pushes the generated kubeconfig to SERVICE_HUB_HOST using JTW_TOKEN

vadim-zabolotniy avatar Sep 12 '22 11:09 vadim-zabolotniy