gpt4 book ai didi

kubernetes - 无法在Kops实例上安装istio

转载 作者:行者123 更新时间:2023-12-02 12:01:20 26 4
gpt4 key购买 nike

我正在尝试在Kubernetes集群上安装Istio。我创建了一个三节点群集,并安装了istioctl 1.1.0版本。 istio安装随附在istio-demo.yaml目录中的install/kubernetes/istio-demo.yaml文件。当我运行kubectl apply -f install/kubernetes/istio-demo.yaml命令时,得到以下输出。

然后我使用kubectl get svc -n istio-system列出了服务,我看到了服务

然后,当我使用kubectl get pod -n istio-system列出 pod 时,我看不到 pod 。我要去哪里错了?

rule.config.istio.io/tcpkubeattrgenrulerule created
kubernetes.config.istio.io/attributes created
destinationrule.networking.istio.io/istio-policy created
destinationrule.networking.istio.io/istio-telemetry created
unable to recognize "install/kubernetes/istio-demo.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "install/kubernetes/istio-demo.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "install/kubernetes/istio-demo.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "install/kubernetes/istio-demo.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "install/kubernetes/istio-demo.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "install/kubernetes/istio-demo.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "install/kubernetes/istio-demo.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"

istio-1.1.0]$ kubectl get namespaces
NAME STATUS AGE
default Active 11m
istio-system Active 100s
kube-node-lease Active 11m
kube-public Active 11m
kube-system Active 11m

kubectl get pod -n istio-system
NAME READY STATUS RESTARTS AGE
istio-cleanup-secrets-1.1.0-fbr87 0/1 Completed 0 3m27s
istio-grafana-post-install-1.1.0-kwz58 0/1 Completed 0 3m27s
istio-security-post-install-1.1.0-mc9wk 0/1 Completed 0 3m27s

附:问题的最新动态:
1。
$ kubectl api-resources | grep deployment
deployments deploy apps true
Deployment
  • 客户端版本:version.Info {主要:“1”,次要:“17”
  • 最佳答案

    您可以使用以下命令检查哪些api支持当前的Kubernetes对象

    $ kubectl api-resources | grep deployment
    deployments deploy apps true Deployment

    因此,您正在尝试使用不推荐使用的 apiVersion extensions/v1beta1。 kubernetes版本1.16中已弃用该功能。您似乎拥有一个版本1.16以上的kubernetes集群。

    两种解决方案:
  • 在您拥有istio-demo.yamlDeployment中,将apiVersionextensions/v1beta1更改为apps/v1
  • Istio 1.1相当老,因此建议将其升级到最新版本,以解决此问题。

  • 还可以通过运行 kubectl version来验证kubectl客户端版本和Kubernetes服务器版本是否匹配

    关于kubernetes - 无法在Kops实例上安装istio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61611398/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com