Istio1.4.4安装部署指南1

最新公司要实现灰度发布,经过多种工具的对比,决定使用Istio进行部署。istio可以实现对流量的控制、策略安全的管理、实现服务的治理,可以轻而易举的完成一些重要工作,如A/B测试、金丝雀实施(canary rollouts)和基于百分比的流量分割控制)。

https://istio.io/docs/setup/getting-started/官网

1、下载istio工具包

curl -L https://istio.io/downloadIstio | sh -

cd istio-1.4.4

export PATH=$PWD/bin:$PATH

第一条命令就是获取最新的istio版本,并下载到本机解压,由于国内网络状况,很多人卡到第一步,因此我将istio1.4.4tar包上传到csdn上,审核通过后大家可以直接下载使用。istio1.4.4下载

使用命令手工解压

tar -xzvf istio-1.4.4-linux.tar.gz 

目录结构如下:

[root@vms51 istio-1.4.4]# ls -al
总用量 28
drwxr-x---   6 root root   113 2月   4 09:02 .
dr-xr-x---.  8 root root  4096 2月  15 12:57 ..
drwxr-x---   2 root root    22 2月   4 09:02 bin
drwxr-xr-x   6 root root    79 2月   4 09:02 install
-rw-r--r--   1 root root 11348 2月   4 09:02 LICENSE
-rw-r-----   1 root root   657 2月   4 09:02 manifest.yaml
-rw-r--r--   1 root root  6080 2月   4 09:02 README.md
drwxr-xr-x  19 root root   307 2月   4 09:02 samples
drwxr-x---   3 root root   137 2月   4 09:02 tools

将bin/istioctl 复制到/bin目录下

cp bin/istioctl /bin/

添加命令自动完成

cp ~/istio-1.4.4/tools/istioctl.bash ~

大致完成内容如下

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
source ~/istioctl.bash

使用校验安装环境

istioctl verify-install

[root@vms51 ~]# istioctl verify-install

Checking the cluster to make sure it is ready for Istio installation...

#1. Kubernetes-api
-----------------------
Can initialize the Kubernetes client.
Can query the Kubernetes API Server.

#2. Kubernetes-version
-----------------------
Istio is compatible with Kubernetes: v1.17.0.

#3. Istio-existence
-----------------------
Istio will be installed in the istio-system namespace.

#4. Kubernetes-setup
-----------------------
Can create necessary Kubernetes configurations: Namespace,ClusterRole,ClusterRoleBinding,CustomResourceDefinition,Role,ServiceAccount,Service,Deployments,ConfigMap. 

#5. SideCar-Injector
-----------------------
This Kubernetes cluster supports automatic sidecar injection. To enable automatic sidecar injection see https://istio.io/docs/setup/kubernetes/additional-setup/sidecar-injection/#deploying-an-app

-----------------------
Install Pre-Check passed! The cluster is ready for Istio installation.

没有错误提醒,说明环境没有问题,从检测结果看istio1.4.4支持 k8s 1.17

Istio is compatible with Kubernetes: v1.17.0.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Blue_Tear

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值