okd 3.11 安装、使用Istio

本教程详细介绍了如何在okd 3.11上安装和配置Istio,包括资源准备、okd安装、Istio操作符的安装与依赖、Istio的安装、sidecar自动注入的开启,以及helloworld应用的部署。通过此过程,读者将掌握在OpenShift环境中集成Istio服务网格的方法。
摘要由CSDN通过智能技术生成

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-</
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值