Istio 测试环境搭建和功能演示
本文提供Windows 10下Istio环境的配置安装步骤,以及简单的Bookinfo示例功能验证。首先搭建一个基于Minikube和VirtualBox的本地Kubernetes集群,随后安装配置Istio,最后验证Bookinfo示例。
Istio 介绍: https://istio.io/docs/concepts/what-is-istio/
1. 本地环境
2. 安装 VirtualBox
https://download.virtualbox.org/virtualbox/6.0.12/VirtualBox-6.0.12-133076-Win.exe
3. 安装 Git
https://git-scm.com/download/win
安装后续软件使用 Git Bash,可以直接运行类Linux命令。
4. 安装 Kubectl
Git Bash下执行命令:
(1) curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/windows/amd64/kubectl.exe
(2) 将kubectl.exe所在目录加入到系统环境变量
(3)验证kubectl工作是否正常
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:40:16Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"windows/amd64"}
5. 安装 Minikube
(1)下载安装 https://storage.googleapis.com/minikube/releases/v1.3.1/minikube-windows-amd64.exe
(2)设置系统环境变量
(3)验证minikube
$ minikube version
minikube version: v1.3.1
commit: ca60a424ce69a4d79f502650199ca2b52f29e631
6. 创建本地Kubernetes集群
(1)创建集群命令
minikube -v=9 start --memory=8192 --cpus=4 --kubernetes-version=v1.15.3