当前位置: 代码迷 >> 综合 >> k8s1.10 安装isito1.0
  详细解决方案

k8s1.10 安装isito1.0

热度:90   发布时间:2024-02-28 13:33:40.0

istio 1.1及以上的版本需要k8s在1.11版本,但是实验室k8s版本是1.10 无语  没办法 还是得继续搬砖

参考链接:https://www.cnblogs.com/rickie/p/istio.html

                   https://blog.csdn.net/qq_29994609/article/details/82626393

具体步骤:

1 helm2安装 不做详细介绍

2 下载isito

wget https://github.com/istio/istio/releases/download/1.0.0/istio-1.0.0-linux.tar.gz

tar -zvxf istio-1.0.0-linux.tar.gz

3 安装配置环境变量

        [root@centos-110 istio-1.0.0]# vim /etc/profile

                       在profile文件底部,增加如下一行:

                       export PATH=$PATH:/root/istio/istio-1.0.0/bin

               执行source命令,使修改马上生效

             [root@centos-110 istio-1.0.0]# source /etc/profile

                [root@centos-110 istio-1.0.0]# echo $PATH

               /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/istio/istio-1.0.0/bin

            验证istioctl 安装成功

           [root@centos-110 bin]# istioctl version

                Version: 1.0.0

              GitRevision: 3a136c90ec5e308f236e0d7ebb5c4c5e405217f4

           User: root@71a9470ea93c

         Hub: gcr.io/istio-release

            GolangVersion: go1.10.1

         BuildStatus: Clean

4 # 安装Istio的CRD(Custom Resource Definitions)

kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml

5 安装镜像  

 docker pull istio/proxy_init:1.0.0
docker pull istio/proxyv2:1.0.0
docker pull istio/galley:1.0.0
docker pull istio/grafana:1.0.0
docker pull istio/mixer:1.0.0
docker pull istio/pilot:1.0.0
docker pull istio/citadel:1.0.0
docker pull istio/servicegraph:1.0.0
docker pull istio/sidecar_injector:1.0.0
docker pull zhenyuyang/hyperkube-v1.7.6_coreos.0
docker pull jaegertracing/all-in-one:1.5
docker pull prom/prometheus:v2.3.1
docker pull prom/statsd-exporter:v0.6.0

 

docker tag istio/proxy_init:1.0.0 gcr.io/istio-release/proxy_init:1.0.0
docker tag istio/proxyv2:1.0.0 gcr.io/istio-release/proxyv2:1.0.0
docker tag istio/galley:1.0.0 gcr.io/istio-release/galley:1.0.0
docker tag istio/grafana:1.0.0 gcr.io/istio-release/grafana:1.0.0
docker tag istio/mixer:1.0.0 gcr.io/istio-release/mixer:1.0.0
docker tag istio/pilot:1.0.0 gcr.io/istio-release/pilot:1.0.0
docker tag istio/citadel:1.0.0 gcr.io/istio-release/citadel:1.0.0
docker tag istio/servicegraph:1.0.0 gcr.io/istio-release/servicegraph:1.0.0
docker tag istio/sidecar_injector:1.0.0 gcr.io/istio-release/sidecar_injector:1.0.0
docker tag zhenyuyang/hyperkube-v1.7.6_coreos.0 quay.io/coreos/hyperkube:v1.7.6_coreos.0
docker tag jaegertracing/all-in-one:1.5 docker.io/jaegertracing/all-in-one:1.5
docker tag prom/prometheus:v2.3.1 docker.io/prom/prometheus:v2.3.1
docker tag prom/statsd-exporter:v0.6.0 docker.io/prom/statsd-exporter:v0.6.0

 

 

docker rmi istio/proxy_init:1.0.0
docker rmi istio/proxyv2:1.0.0
docker rmi istio/galley:1.0.0
docker rmi istio/grafana:1.0.0
docker rmi istio/mixer:1.0.0
docker rmi istio/pilot:1.0.0
docker rmi istio/citadel:1.0.0
docker rmi istio/servicegraph:1.0.0
docker rmi istio/sidecar_injector:1.0.0
docker rmi zhenyuyang/hyperkube-v1.7.6_coreos.0
docker rmi jaegertracing/all-in-one:1.5
docker rmi prom/prometheus:v2.3.1
docker rmi prom/statsd-exporter:v0.6.0

 安装Istio - Sidecars之间不启用TLS认证

$ kubectl apply -f install/kubernetes/istio-demo.yaml