Service-Hub
Service-Hub copied to clipboard
Render kubectl-kubeconfig plugin template.
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
- Generates a kubeconfig for given context
- Pushes the generated kubeconfig to
SERVICE_HUB_HOST
usingJTW_TOKEN