【问题标题】:istioctl command is giving me error "/home/ubuntu/.kube/config" does not exististioctl 命令给我错误“/home/ubuntu/.kube/config”不存在
【发布时间】:2018-02-16 13:37:22
【问题描述】:

我正在跟进 IstioSetup 的 istio 文档中的示例 我可以按照文档中的方式安装 istio,但是当我尝试运行 istioctl 命令示例 istioctl kube-inject -f samples/bookinfo/kube/bookinfo.yaml 时,我收到如下错误

**Error: kubernetes configuration file "/home/ubuntu/.kube/config" does not exist**

我已经使用 kismatic install 安装了 kubernetes 集群,并在安装 Kubernetes 1.9 的最后使用不同版本安装了多个,并且有和没有 ingress 。我在集群版本和非集群版本中尝试了相同的错误。

【问题讨论】:

  • 你能粘贴kubectl config view的输出吗

标签: kubernetes istio


【解决方案1】:

Kismatic 在generated/kubeconfig 生成kubectl 所需的kubconfig 文件。

要么将此文件复制到~/.kube/config,要么

使用kubectl 时,使用--kubeconfig 标志指定配置文件的位置:

kubectl --kubeconfig generated/kubeconfig

【讨论】:

    猜你喜欢
    • 2015-06-02
    • 2021-09-12
    • 2018-09-06
    • 2015-05-31
    • 1970-01-01
    • 1970-01-01
    • 2017-02-04
    • 1970-01-01
    • 2021-09-27
    相关资源
    最近更新 更多