Skip to content

Installation on local Docker Engine / Ubuntu doesn't create a k8s context #194

@dcremonini

Description

@dcremonini

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions