-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Why you need it?
Feature request: Add the kubernetes context to the ~/.kube/config file once the cluster is installed.
This would make the installation even easier.
Currently, installing openserverless locally (Docker Engine, Ubuntu) creates a kind cluster but no context is added to the ~/.kube/config. As a consequence, tools such as kubectl cannot be used to reach the cluster.
How it could be?
The installation should add the newly created kubernetes context to the ~/.kube/config file.
Other related information
ops version: 0.1.0-2409121919.dev
After a successful installation, the context in which openserverless is available is called nuvolaris.
The context can be exported using the command below:
kind export kubeconfig --name nuvolaris
The result can be checked using
kubectl config get-contexts
whose output is
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* kind-nuvolaris kind-nuvolaris kind-nuvolaris
In the Troubleshooting page the Kubeconfig sections tells something related:
You can overwrite your kubeconfig (be aware there is no backup) with ops debug export F=-.
The overwriting behaviour (which I haven't tried) might be subject of a feature request as well (to evaluate).