Istio在Openshift 3.11的安装
详细安装步骤及解释参考
https://docs.openshift.com/container-platform/3.11/servicemesh-install/servicemesh-install.html#servicemesh-installation-overview
1.设置virtualbox能够上网
添加网络地址转换NAT网卡,并且编辑network-script
[root@node1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s8
TYPE="Ethernet"
#PROXY_METHOD="none"
BOOTPROTO="dhcp"
#IPADDR=192.168.56.103
#NETMASK=255.255.255.0
#GATEWAY=192.168.64.254
DNS1=202.106.0.20
DNS2=114.114.114.114
NAME="enp0s8"
DEVICE="enp0s8"
ONBOOT="yes"
DEFROUTE=yes
删除enp0s3的GATEWAY选项,验证是否能上网。
如果离线安装需要下载的镜像包括
openshift-istio-tech-preview/istio-operator:0.5.
openshift-istio-tech-preview/openshift-ansible:0.5.
openshift-istio-tech-preview/citadel:0.5.
openshift-istio-tech-preview/proxyv2:0.5.
openshift-istio-tech-preview/pilot:0.5.
openshift-istio-tech-preview/mixer:0.5.
docker.io/prom/prometheus:v2.3.1 openshift-istio-tech-preview/galley:0.5.
openshift-istio-tech-preview/sidecar-injector:0.5. distributed-tracing-tech-preview/jaeger-elasticsearch:5.6.
grafana/grafana:5.2.
distributed-tracing-tech-preview/jaeger-agent:1.8.
distributed-tracing-tech-preview/jaeger-collector:1.8.
distributed-tracing-tech-preview/jaeger-query:1.8.
kiali/kiali:v0.10.1
但最后还需要建立一个github,把代码clone过去
https://github.com/fabric8-launcher/launcher-booster-catalog.git
所以最后还是选择联互联网。
2. 准备工作
每台机器新建立一个/etc/sysctl.d/99-elasticsearch.conf文件,添加
vm.max_map_count =
#sysctl vm.max_map_count=
在master机器上建立/etc/origin/master/master-config.patch文件
admissionConfig:
pluginConfig:
MutatingAdmissionWebhook:
configuration:
apiVersion: apiserver.config.k8s.io/v1alpha1
kubeConfigFile: /dev/null
kind: WebhookAdmission
ValidatingAdmissionWebhook:
configuration:
apiVersion: apiserver.config.k8s.io/v1alpha1
kubeConfigFile: /dev/null
kind: WebhookAdmission
然后
$ cp -p master-config.yaml master-config.yaml.prepatch
$ oc ex config patch master-config.yaml.prepatch -p "$(cat master-config.patch)" > master-config.yaml
$ /usr/local/bin/master-restart api && /usr/local/bin/master-restart controllers
3.安装
istio_product_operator_template.yaml
apiVersion: v1
kind: Template
metadata:
name: istio-operator-job
parameters:
- displayName: Master Public URL
description: The public URL for master
name: OPENSHIFT_ISTIO_MASTER_PUBLIC_URL
value: https://127.0.0.1:8443
- displayName: OpenShift Release
description: The version of the OpenShift release.
name: OPENSHIFT_RELEASE
value: v3.11.0
required: true
- displayName: Istio Operator Namespace
description: The namespace for the Istio operator
name: OPENSHIFT_ISTIO_OPERATOR_NAMESPACE
value: istio-operator
required: true
- displayName: Default Prefix
description: The default image prefix for istio deployments
name: OPENSHIFT_ISTIO_PREFIX
value: openshift-istio-tech-preview/
- displayName: Default Version
description: The default image version for istio deployments
name: OPENSHIFT_ISTIO_VERSION
value: 0.5.
- displayName: Default Deployment Type
description: The default deployment type for istio deployments
name: OPENSHIFT_DEPLOYMENT_TYPE
value: openshift
objects:
- kind: CustomResourceDefinition
apiVersion: apiextensions.k8s.io/v1beta1
metadata:
name: installations.istio.openshift.com
spec:
group: istio.openshift.com
names:
kind: Installation
plural: installations
singular: installation
scope: Namespaced
version: v1alpha1
- kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: istio-operator
rules:
- apiGroups:
- istio.openshift.com
resources:
- "*"
verbs:
- "*"
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
- securitycontextconstraints
verbs:
- "*"
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- "*"
- kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: default-account-istio-operator
subjects:
- kind: ServiceAccount
namespace: ${OPENSHIFT_ISTIO_OPERATOR_NAMESPACE}
name: default
roleRef:
kind: Role
name: istio-operator
apiGroup: rbac.authorization.k8s.io
- kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: default-account-istio-operator-cluster-role-binding
subjects:
- kind: ServiceAccount
namespace: ${OPENSHIFT_ISTIO_OPERATOR_NAMESPACE}
name: default
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
- kind: Deployment
apiVersion: apps/v1
metadata:
name: istio-operator
namespace: ${OPENSHIFT_ISTIO_OPERATOR_NAMESPACE}
spec:
replicas:
selector:
matchLabels:
name: istio-operator
template:
metadata:
labels:
name: istio-operator
spec:
containers:
- name: istio-operator
image: ${OPENSHIFT_ISTIO_PREFIX}istio-operator:${OPENSHIFT_ISTIO_VERSION}
ports:
- containerPort:
name: metrics
command:
- istio-operator
args:
- "--release=${OPENSHIFT_RELEASE}"
- "--masterPublicURL=${OPENSHIFT_ISTIO_MASTER_PUBLIC_URL}"
- "--istioPrefix=${OPENSHIFT_ISTIO_PREFIX}"
- "--istioVersion=${OPENSHIFT_ISTIO_VERSION}"
- "--deploymentType=${OPENSHIFT_DEPLOYMENT_TYPE}"
imagePullPolicy: IfNotPresent
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: OPERATOR_NAME
value: "istio-operator"
cr.yaml
特别注意需要把模板中的username,password,token换成自己的啊!
[root@master istio]# cat cr.yaml
apiVersion: "istio.openshift.com/v1alpha1"
kind: "Installation"
metadata:
name: "istio-installation"
namespace: istio-operator
spec:
deployment_type: openshift
istio:
authentication: true
community: false
prefix: openshift-istio-tech-preview/
version: 0.5.
jaeger:
prefix: distributed-tracing-tech-preview/
version: 1.8.
elasticsearch_memory: 1Gi
kiali:
username: username
password: password
prefix: kiali/
version: v0.10.1
launcher:
openshift:
user: admin
password: welcome1
github:
username: ericnie2015
token: 19ba02ae0c370d8bb2bcf24ec5dd77ca6cb0b472
catalog:
filter: booster.mission.metadata.istio
branch: v71
repo: https://github.com/fabric8-launcher/launcher-booster-catalog.git
- Operator安装验证
#oc new-project istio-operator
#oc new-app -f istio_product_operator_template.yaml --param=OPENSHIFT_ISTIO_MASTER_PUBLIC_URL=https://master.example.com:8443
# oc logs -n istio-operator $(oc -n istio-operator get pods -l name=istio-operator --output=jsonpath={.items..metadata.name})
- 控制面板的部署
#oc create -f cr.yaml -n istio-operator

[root@master istio]# oc get pods -n devex
NAME READY STATUS RESTARTS AGE
configmapcontroller--kszwr / Running 26m
launcher-backend--8tkg8 / Running 5m
launcher-frontend--lfr9z / Running 2m
Istio在Openshift 3.11的安装的更多相关文章
- openshift 3.11安装部署
		openshift 3.11 安装部署 openshift安装部署 1 环境准备(所有节点) openshift 版本 v3.11 1.1 机器环境 ip cpu mem hostname OSsys ... 
- openshift 3.11 安装部署
		openshift 3.11 安装部署 openshift安装部署 1 环境准备(所有节点) openshift 版本 v3.11 1.1 机器环境 ip cpu mem hostname OSsys ... 
- 【译文连载】 理解Istio服务网格(第二章 安装)
		全书目录 第一章 概述 本文目录 1.命令行工具安装 2. Kubernetes/OpenShift安装 3. Istio安装 4.示例Java微服务安装 4.1 源码概览 4.2 编译和部署cust ... 
- star ccm+ 11.02安装
		STAR CCM+是CD-Adapco公司的主打软件,其安装方式较为简单,这里以图文方式详细描述STAR CCM+11.02安装过程. 1 安装准备工作2 正式安装3 软件破解4 软件测试 1 安装准 ... 
- 10.11 cocoapods安装
		手动安装gem 手动下载 rubygem https://rubygems.org/pages/download#formats 10.11 cocoapods安装 sudo gem install ... 
- OSX 10.11   cocoapods安装命令: sudo gem install -n /usr/local/bin cocoapods
		10.11 cocoapods安装命令: sudo gem install -n /usr/local/bin cocoapods 
- Centos7 mysql-community-5.7.11编译安装
		安装环境 [root@localhost ~]# cat /etc/centos-release CentOS Linux release 7.0.1406 (Core) 0x01 准备工作 1.到m ... 
- ubuntu 11.10 安装apache2 tomcat6
		ubuntu 11.10 安装apache2 tomcat6 导读 Tomcat是Apache 软件基金会(Apache Software Foundation)的Jakarta 项目中的一个核心项目 ... 
- Ubuntu 11.10 安装GMONE3,卸载 UNITY和UNITY 2D
		Ubuntu 11.10安装GNOME3: 1)sudo apt-get install gnome-shell sudo apt-get install gnome-themes* (或者 ... 
随机推荐
- selector函数指针回调机制
			selector可以叫做选择器,其实指的就是对象的方法,也可以理解为C语言里面的函数指针,在面向对象里面的对应概念. [self performSelector:@selector(Hidden) w ... 
- 关于node.js的模块查找顺序(require.resolve())
			前几天社团群里有人问了阿里秋季前端笔试的一道题,想起来以前在官方文档看到过查找模块的算法,干脆自己写一写…… 官方的require.resolve实现在这里. 因为我只是想看看查找过程,所以就直接把会 ... 
- git用法大全
			转载自实验楼,之前有更新过两篇git的文章,毕竟内容太少,而git还有很多更丰富的技能,在实验楼上有一系列全的教程,这里做一下备案.需要时查阅. Git 实战教程 目录 一.实验说明 二.git的初始 ... 
- Python的hasattr() getattr() setattr() 函数使用方法(简介)
			hasattr(object, name)判断一个对象里面是否有name属性或者name方法,返回BOOL值,有name特性返回True, 否则返回False.需要注意的是name要用括号括起来 1 ... 
- js过滤检测敏感词汇
			html: <textarea rows="10" cols="100" id="myDiv"></textarea> ... 
- Robot Framework + Selenium2Lib
			Robot Framework + Selenium2Lib 最近一段时间,公司在推行自动化测试流程,本人有幸参与了自定义通用控件的关键字封装和脚本辅助编写.数据驱动管理.测试用例执行管理等一系列工具 ... 
- lr11_Run-time Settings选项介绍:
			lr11_Run-time Settings选项介绍: ●Run Logic ●Pacing ●Log 下面对每个 
- (14) go 结构体
			1. 声明一个结构体 2.属性 如果是 指针 切片 map 需要用make 3.赋值 (2) (3) (4) 4. 正确,字段相同,数据类型相同,名字相同 5. 
- C++快速文件输入输出
			转载请注明: 仰望高端玩家的小清新 http://www.cnblogs.com/luruiyuan/ C语言可以获得接近汇编的性能,而输入输出常常是最为耗时的过程,因此可以使用 C 语言中的 fre ... 
- C51中的xdata
			今天在写公司芯片对应的.H文件时,在定义寄存器的时候出现一个问题. 我们芯片的寄存器地址是定义在片外RAM区的,不能使用sfr这样的关键字来进行定义. 后来查阅了对应的资料才发现定义寄存器有很多种方法 ... 
