Skip to content

Dangerous installation instructions for Istio and Knative #2

Open
@the-gigi

Description

@the-gigi

After provisioning the Linode Kubernetes cluster its kubeconfig file is saved to .kube/kubeconfig.yaml. However the current Kubernetes contenxt remains as is.

The installers/install-knative-istio.sh script simply installs to the current Kubernetes context and NOT to the Linode cluster.

There are two reasonable ways to address it:

  1. In the shell, export KUBECONFIG=${PWD}/.kube/kubeconfig.yam before running the script.
  2. In the script set KUBECONFIG=${PWD}/.kube/kubeconfig.yam

The #1 option is good for accessing the cluster later with kubectl without having to pass the context in every command using --context .kube/kubeconfig.yaml

The #2 option is safer because the script will always install Istio and Knative to the correct cluster even if the user forgot to set KUBECONFIG.

Of course you do both. It's idempotent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions