1.资源准备
虚拟机4C 8G 100G磁盘,配置好网络,需要连接外网。
cat /etc/centos-release
CentOS Linux release 7.7.1908 (Core)
2.安装okd 3.11
# 安装git
yum install git -y
# clone okd一键安装项目
cd /opt/
git clone https://gitee.com/xhua/OpenshiftOneClick.git
cd OpenshiftOneClick
# 修改必要的配置
cat config.yml
---
CHANGEREPO: true
HOSTNAME: os311.test.example.com
Change_Base_Registry: false
Harbor_Url: harbor.apps.it.example.com
FULL_INSTALL: false
SAMPLE_TEMPLATES: false
CICD_INSTALL: false
# GOGS_USER: root
GOGS_PASSWORD: root
GOGS_EMAIL: abc@123.com
# 设置hostname
hostnamectl set-hostname os311.test.example.com
# 执行安装
/bin/bash deploy_openshift.sh
完成后在访问的主机中设置hosts,添加一条
192.168.84.138 os311.test.example.com
在浏览器中访问: https://os311.test.example.com:8443
3. 安装Istio
参考:https://github.com/Maistra/istio-operator
3.1 安装istio-operator
3.1.1 安装依赖的operator
Installing the Elasticsearch Operator
oc create -f https://raw.githubusercontent.com/openshift/elasticsearch-operator/release-4.1/manifests/01-service-account.yaml -n openshift-logging
oc create -f https://raw.githubusercontent.com/openshift/elasticsearch-</