Istio 1.0快速安装到Kubernetes集群

原创
2018/08/03 21:43
阅读数 2.3K

Istio 1.0快速安装到Kubernetes集群

下载:

$ curl -L https://git.io/getLatestIstio | sh -

或者:

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

设置路径:

 export PATH=$PWD/bin:$PATH

下载镜像:

docker pull docker.io/istio/proxyv2:1.0.0
docker pull docker.io/istio/proxy_init:1.0.0

docker pull docker.io/istio/sidecar_injector:1.0.0
docker pull docker.io/istio/galley:1.0.0

docker pull docker.io/istio/mixer:1.0.0
docker pull docker.io/istio/pilot:1.0.0
docker pull docker.io/istio/citadel:1.0.0

或者,从Aliytun下载镜像:

echo ""
echo "=========================================================="
echo "Pull Istio 1.0.0 Images from aliyuncs.com ......"
echo "=========================================================="
echo ""

echo "docker tag to openthings ..."

## 添加Tag for registry.cn-hangzhou.aliyuncs.com/openthings

MY_REGISTRY=registry.cn-hangzhou.aliyuncs.com/openthings

echo ""
echo "=========================================================="
echo ""

## Pull镜像
echo ""
echo "1./istio-proxyv2:1.0.0"
docker pull ${MY_REGISTRY}/istio-proxyv2:1.0.0
docker tag ${MY_REGISTRY}/istio-proxyv2:1.0.0 docker.io/istio/proxyv2:1.0.0 

echo ""
echo "2.istio-proxy_init:1.0.0"
docker pull ${MY_REGISTRY}/istio-proxy_init:1.0.0
docker tag ${MY_REGISTRY}/istio-proxy_init:1.0.0  docker.io/istio/proxy_init:1.0.0

echo ""
echo "3.istio-sidecar_injector:1.0.0"
docker pull ${MY_REGISTRY}/istio-sidecar_injector:1.0.0
docker tag ${MY_REGISTRY}/istio-sidecar_injector:1.0.0 docker.io/istio/sidecar_injector:1.0.0

echo ""
echo "4.istio-galley:1.0.0"
docker pull ${MY_REGISTRY}/istio-galley:1.0.0
docker tag ${MY_REGISTRY}/istio-galley:1.0.0 docker.io/istio/galley:1.0.0

echo ""
echo "5.istio-mixer:1.0.0"
docker pull ${MY_REGISTRY}/istio-mixer:1.0.0
docker tag ${MY_REGISTRY}/istio-mixer:1.0.0 docker.io/istio/mixer:1.0.0

echo ""
echo "6.istio-pilot:1.0.0"
docker pull ${MY_REGISTRY}/istio-pilot:1.0.0
docker tag ${MY_REGISTRY}/istio-pilot:1.0.0 docker.io/istio/pilot:1.0.0

echo ""
echo "7.istio/citadel:1.0.0"
docker pull ${MY_REGISTRY}/istio-citadel:1.0.0
docker tag ${MY_REGISTRY}/istio-citadel:1.0.0 docker.io/istio/citadel:1.0.0 

echo ""
echo "Extra========================================="
echo "8.coreos-hyperkube:v1.7.6_coreos.0"
docker pull ${MY_REGISTRY}/coreos-hyperkube:v1.7.6_coreos.0
docker tag ${MY_REGISTRY}/coreos-hyperkube:v1.7.6_coreos.0 quay.io/coreos/hyperkube:v1.7.6_coreos.0

echo ""
echo "9.prom-prometheus:latest"
docker pull ${MY_REGISTRY}/prom-prometheus:latest
docker tag ${MY_REGISTRY}/prom-prometheus:latest docker.io/prom/prometheus:latest

echo ""
echo "10.statsd-exporter:latest"
docker pull ${MY_REGISTRY}/statsd-exporter:latest
docker tag ${MY_REGISTRY}/statsd-exporter:latest prom/statsd-exporter:latest

echo ""
echo "=========================================================="
echo "Push Istio 1.0.0 Images FINISHED."
echo "into registry.cn-hangzhou.aliyuncs.com/openthings, "
echo "           by openthings@https://my.oschina.net/u/2306127."
echo "=========================================================="

echo ""

安装:

helm template install/kubernetes/helm/istio --name istio --namespace istio-system > ./istio.yaml

kubectl create namespace istio-system
kubectl create -f ./istio.yaml

 

展开阅读全文
打赏
0
0 收藏
分享
加载中

引用来自“开开心心打酱油”的评论

老师你好,请问 helm 和kubeadm会冲突吗

引用来自“openthings”的评论

helm是应用的安装程序, kubeadm是Kubernetes系统的安装程序,两个一般都会同时用,没有任何冲突。
好的,谢谢老师,我装下试试
2018/08/07 10:25
回复
举报
openthings博主

引用来自“开开心心打酱油”的评论

老师你好,请问 helm 和kubeadm会冲突吗
helm是应用的安装程序, kubeadm是Kubernetes系统的安装程序,两个一般都会同时用,没有任何冲突。
2018/08/06 20:00
回复
举报
老师你好,请问 helm 和kubeadm会冲突吗
2018/08/06 18:57
回复
举报
更多评论
打赏
3 评论
0 收藏
0
分享
返回顶部
顶部