zoukankan      html  css  js  c++  java
  • Istio安装

    下载 Istio

    下载 Istio,下载内容将包含:安装文件、示例和 istioctl 命令行工具。

    1. 访问 Istio release 页面下载与您操作系统对应的安装文件。在 macOS 或 Linux 系统中,也可以通过以下命令下载最新版本的 Istio:

      curl -L https://istio.io/downloadIstio | sh -
      
    2. 切换到 Istio 包所在目录下。例如:Istio 包名为 istio-1.6.8,则:

      cd istio-1.6.8
      

      安装目录包含如下内容:

      • install/kubernetes 目录下,有 Kubernetes 相关的 YAML 安装文件
      • samples/ 目录下,有示例应用程序
      • bin/ 目录下,包含 istioctl 的客户端文件。istioctl 工具用于手动注入 Envoy sidecar 代理。
    3. istioctl 客户端路径增加到 path 环境变量中,macOS 或 Linux 系统的增加方式如下:

      export PATH=$PWD/bin:$PATH
      
    4. 在使用 bash 或 ZSH 控制台时,可以选择启动 auto-completion option

    安装 Istio

    请按照以下步骤在您所选的平台上使用 demo 配置文件安装 Istio。

    1. 安装 demo 配置

      $ istioctl manifest apply --set profile=demo
      
    2. 为了验证是否安装成功,需要先确保以下 Kubernetes 服务正确部署,然后验证除 jaeger-agent 服务外的其他服务,是否均有正确的 CLUSTER-IP

      $ kubectl get svc -n istio-system
      NAME                     TYPE           CLUSTER-IP       EXTERNAL-IP     PORT(S)                                                                                                                                      AGE
      grafana                  ClusterIP      172.21.211.123   <none>          3000/TCP                                                                                                                                     2m
      istio-citadel            ClusterIP      172.21.177.222   <none>          8060/TCP,15014/TCP                                                                                                                           2m
      istio-egressgateway      ClusterIP      172.21.113.24    <none>          80/TCP,443/TCP,15443/TCP                                                                                                                     2m
      istio-galley             ClusterIP      172.21.132.247   <none>          443/TCP,15014/TCP,9901/TCP                                                                                                                   2m
      istio-ingressgateway     LoadBalancer   172.21.144.254   52.116.22.242   15020:31831/TCP,80:31380/TCP,443:31390/TCP,31400:31400/TCP,15029:30318/TCP,15030:32645/TCP,15031:31933/TCP,15032:31188/TCP,15443:30838/TCP   2m
      istio-pilot              ClusterIP      172.21.105.205   <none>          15010/TCP,15011/TCP,8080/TCP,15014/TCP                                                                                                       2m
      istio-policy             ClusterIP      172.21.14.236    <none>          9091/TCP,15004/TCP,15014/TCP                                                                                                                 2m
      istio-sidecar-injector   ClusterIP      172.21.155.47    <none>          443/TCP,15014/TCP                                                                                                                            2m
      istio-telemetry          ClusterIP      172.21.196.79    <none>          9091/TCP,15004/TCP,15014/TCP,42422/TCP                                                                                                       2m
      jaeger-agent             ClusterIP      None             <none>          5775/UDP,6831/UDP,6832/UDP                                                                                                                   2m
      jaeger-collector         ClusterIP      172.21.135.51    <none>          14267/TCP,14268/TCP                                                                                                                          2m
      jaeger-query             ClusterIP      172.21.26.187    <none>          16686/TCP                                                                                                                                    2m
      kiali                    ClusterIP      172.21.155.201   <none>          20001/TCP                                                                                                                                    2m
      prometheus               ClusterIP      172.21.63.159    <none>          9090/TCP                                                                                                                                     2m
      tracing                  ClusterIP      172.21.2.245     <none>          80/TCP                                                                                                                                       2m
      zipkin                   ClusterIP      172.21.182.245   <none>          9411/TCP                                                                                                                                     2m
      

      如果集群运行在一个不支持外部负载均衡器的环境中(例如:minikube),istio-ingressgatewayEXTERNAL-IP 将显示为 <pending> 状态。请使用服务的 NodePort 或 端口转发来访问网关。

      请确保关联的 Kubernetes pod 已经部署,并且 STATUSRunning

      $ kubectl get pods -n istio-system
      NAME                                                           READY   STATUS      RESTARTS   AGE
      grafana-f8467cc6-rbjlg                                         1/1     Running     0          1m
      istio-citadel-78df5b548f-g5cpw                                 1/1     Running     0          1m
      istio-egressgateway-78569df5c4-zwtb5                           1/1     Running     0          1m
      istio-galley-74d5f764fc-q7nrk                                  1/1     Running     0          1m
      istio-ingressgateway-7ddcfd665c-dmtqz                          1/1     Running     0          1m
      istio-pilot-f479bbf5c-qwr28                                    1/1     Running     0          1m
      istio-policy-6fccc5c868-xhblv                                  1/1     Running     2          1m
      istio-sidecar-injector-78499d85b8-x44m6                        1/1     Running     0          1m
      istio-telemetry-78b96c6cb6-ldm9q                               1/1     Running     2          1m
      istio-tracing-69b5f778b7-s2zvw                                 1/1     Running     0          1m
      kiali-99f7467dc-6rvwp                                          1/1     Running     0          1m
      prometheus-67cdb66cbb-9w2hm                                    1/1     Running     0          1m
      
  • 相关阅读:
    tera term通过ttl脚本 自动连接服务器
    shell脚本生成xml文件
    MarkDown语法练习笔记
    linux nkf 日文编码转换命令[转载]
    Shell脚本传递带有空格的参数[摘录自网络]
    JavaScript思维导图—函数基础
    JavaScript思维导图—运算符
    JavaScript思维导图—数组
    JavaScript思维导图—流程控制
    JavaScript思维导图—正则表达式
  • 原文地址:https://www.cnblogs.com/xlizi/p/13536521.html
Copyright © 2011-2022 走看看