Skip to content

KUBECONFIG Env Variable Multiple Paths #4081

@mattbits

Description

@mattbits

using Istio 0.6 the following error occurs when the KUBECONFIG environment variable contains multiple paths:

export KUBECONFIG=$HOME/.kube/config:$HOME/.kube/acs-bookinfo-istio
kubectl apply -f <(istioctl kube-inject --debug -f samples/bookinfo/kube/bookinfo.yaml)
Error: kubernetes configuration file "/Users/xxx/.kube/config:/Users/xxx/.kube/acs-bookinfo-istio" does not exist

kubectl supports colon separated paths https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable but istio is not currently supporting it https://github.com/istio/istio/blob/master/pilot/pkg/serviceregistry/kube/client.go#L52

original report https://groups.google.com/forum/#!topic/istio-users/ozJqhLgfr04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions