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

标签 kubernetes istio

我正在尝试在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/

    相关文章:

    kubernetes - 使用 TcpDiscoveryKubernetesIpFinder 在 kubernetes 集群中无法发现 Ignite

    kubernetes - Istio 虚拟服务创建访问被拒绝

    kubernetes - 更新 Istio-IngressGateway TLS 证书

    istio - Istio1.9中速率限制功能的实现

    kubernetes - vert.x 事件总线消息的 Istio 请求跟踪

    kubernetes - Kubernetes namespace 的最大数量是多少?

    networking - Openshift/Kubernetes kube dns 最佳实践 (ndots = 5)

    azure - 错误: forwarding ports: error upgrading connection: error dialing backend: - Azure Kubernetes Service

    kubernetes - 无法使用 kubectl 创建文件

    istio - 如何在 kubernetes 中为 Istio 负载均衡器创建自定义错误页面