istio 安装试用

1. 命令行工具

  1. curl -L https://git.io/getIstio | sh -

2. 环境变量配置

  1. export PATH=$PWD/bin:$PATH

3. RBAC 检验

  1. kubectl api-versions | grep rbac

以下为官方介绍:

  1. If the command displays an error, or does not display anything, it means the cluster does not support RBAC, and you can proceed to step 5 below.
  2. If the command displays ‘beta’ version, or both ‘alpha’ and ‘beta’, please apply istio-rbac-beta.yaml configuration:
  3. kubectl apply -f install/kubernetes/istio-rbac-beta.yaml
  4. Copy
  5. If you get an error
  6. Error from server (Forbidden): error when creating "install/kubernetes/istio-rbac-beta.yaml": clusterroles.rbac.authorization.k8s.io "istio-manager" is forbidden: attempt to grant extra privileges: [{[*] [istio.io] [istioconfigs] [] []} {[*] [istio.io] [istioconfigs.istio.io] [] []} {[*] [extensions] [thirdpartyresources] [] []} {[*] [extensions] [thirdpartyresources.extensions] [] []} {[*] [extensions] [ingresses] [] []} {[*] [] [configmaps] [] []} {[*] [] [endpoints] [] []} {[*] [] [pods] [] []} {[*] [] [services] [] []}] user=&{[email protected] [...]
  7. Copy
  8. You need to add the following: (replace the name with your own)
  9. kubectl create clusterrolebinding myname-cluster-admin-binding --clusterrole=cluster-admin [email protected]
  10. Copy
  11. If the command displays only ‘alpha’ version, please apply istio-rbac-alpha.yaml configuration:
  12. kubectl apply -f install/kubernetes/istio-rbac-alpha.yaml

4. 安装核心组件(注意service type 的定义)

  1. kubectl apply -f install/kubernetes/istio.yaml
  1. kubectl apply -f install/kubernetes/istio-auth.yaml

5. 监控组件安装

  1. kubectl apply -f install/kubernetes/addons/prometheus.yaml
  2. kubectl apply -f install/kubernetes/addons/grafana.yaml
  3. kubectl apply -f install/kubernetes/addons/servicegraph.yaml

6. bookinfo 例子安装

  1. kubectl apply -f <(istioctl kube-inject -f samples/apps/bookinfo/bookinfo.yaml)

7. 几个问题

安装需要使用serviceaccount 注意配置,istioctl 需要使用kubectl config 注意配置

主要是 kubectl config set-cluster kubectl config set-context  kubectl use-context 命令

因为部分容器需要按照特权模式运行,需要配置apiserver controller-manager  --allow-privileged=true

同时服务默认部分使用的是云平台的loadblance 测试环境可能没有,所以需要改为NodePort

8. 总结

总之安装还是比较简单的,但是还需要深入研究,每个组件的设计,以及功能。

9. 参考文档

bookino :https://istio.io/docs/samples/bookinfo.html

install: https://istio.io/docs/tasks/installing-istio.html

ppt 介绍: https://istio.io/talks/istio_talk_gluecon_2017.pdf

时间: 2024-08-28 14:42:54

istio 安装试用的相关文章

项目管理工具 Redmine 安装试用手记

项目管理工具 Redmine 安装试用手记 分类: Redmine2009-06-01 10:12 996人阅读 评论(1) 收藏 举报 项目管理工具sqliterubyrails数据库 昨晚闲逛ROR社区,无意间Redmine这款开源的项目管理工具映入我的眼帘,听说集合了Trac和BaseCamp的优点,安装下来试用一下,果然界面清新,功能简单但又齐全,相当适合用于小型团队开发,下面是我安装试用手记 :) 1.安装导向(官网)http://www.redmine.org/wiki/redmin

Tencent Server Web 安装试用

Tencent Server Web 安装试用 私有环境搭建,使用docker-compose 进行memcache 安装 参考github 代码 https://github.com/rongfengliang/tsw-docker-compose 启动&&运行 docker-compose 运行 docker-compose build docker-compose up -d 访问地址 //service http://hostip:8089 // sky http://hostip

istio 安装与bookinfo示例运行

目的 本文旨在帮助想了解istio安装和运行bookinfo示例的同学快速入门 前置准备 安装k8s和helm 1.k8s安装 修改主机名 hostnamectl set-hostname k8s-master hostnamectl set-hostname k8s-node 配置阿里云yum源环境和gpg校验配置 docker-ce /etc/yum.repos.d目录下 wget https://mirrors.aliyun.com/docker-ce/linux/centos/docke

ubuntu16.04 docker kubernetes(k8s) istio 安装

版本: docker: 19.03.5 kubernetes: 1.17.0 istio: 1.4.3 步骤一:给ubuntu换源 https://www.cnblogs.com/lfri/p/10612037.html 步骤二:装docker sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.

casperjs 安装试用

纠结了好久,一直报错, 具体错误信息现在已经忘了,后来看了官网的prerequisite,才知道要安装特定版本或greater 的 phantomjs 和 Python.我这边主要是没装python.当然还有casperjs 的bin 路径也要加到环境变量里(windows). 然后都好了以后好是不正常,最后竟然是 -version 和 --version的错误,应该用后者,虽然phantomjs用的是前者. 安装好的分割线————————————————————————————————————

apache oozie安装试用

oozie是hadoop的工作流Scheduler,最新的版本到4.0.1了.试用了下,小坑还蛮多的. 1. 编译 我的主机上跑的是Hadoop 1.1.2,选的是oozie 3.3.0版本,下载源码,解压缩. 首先,要把源码里的javaversion从1.6改成1.7,主机是用jdk1.7. 编译oozie,命令是'./bin/mkdistro.sh -DskipTests -Dhadoop.version=1.0.1',跳过测试,另外,不管Hadoop的版本是多少,只要它是1.x的,就只能是

flynn 开源paas 平台安装试用

flynn-host bootstrapflynn 是一个不错的开源paas 平台,基于git 以及容器技术,开发模型与 heroku 基本一样,同时构建方式就是基于heroku 的buildpacks 安装 官方文档提示说明是ubuntu 操作系统16 以及14 ,所以安装就试用ubuntu了 shell sudo bash < <(curl -fsSL https://dl.flynn.io/install-flynn) 效果 比较漫长,等待 安装的组件 Install Flynn’s r

pgbench 安装试用

pgbench 是一个方便的pg 性能测试工具,以下是简单的测试试用 安装 安装pg yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm yum install postgresql10 yum install postgresql10-server yum install -y postgresql10-contrib 配置

MySQL Workbench--Window安装试用

MySQL Workbench 01.概述 MySQL Workbench provides DBAs and developers an integrated tools environment for: Database Design & Modeling SQL Development Database Administration Database Migration The Community (OSS) Edition is available from this page unde