继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

openshift 安装流程 all-in-one

九州编程
关注TA
已关注
手记 475
粉丝 42
获赞 202

开启SELINUX

修改/etc/selinux/config

SELINUX=enforcing
SELINUXTYPE=targeted

关闭防火墙

systemctl stop firewalld
systemctl disable firewalld

安装docker,配置docker加速

http://blog.xianshiyue.com/%E5%AE%89%E8%A3%85docker/

yum install -y docker
systemctl enable docker
systemctl restart docker

因为部署的Registry没有启用HTTPS,所以需要修改Docker的配置让Docker以非HTTPS的方式连接到Registry。修改/etc/sysconfig/docker,为Options变量追加 --insecure-registry 172.30.0.0/16

vim /etc/sysconfig/docker 
--insecure-registry 172.30.0.0/16

下载最新openshift-origin,我下载的是3.7

https://github.com/openshift/origin/releases

解压后把路径添加到path

export PATH=$(pwd):$PATH##不配,登录会有错误export KUBECONFIG=`pwd`/openshift.local.config/master/admin.kubeconfigexport CURL_CA_BUNDLE=`pwd`/openshift.local.config/master/ca.crt
sudo chmod +r `pwd`/openshift.local.config/master/admin.kubeconfig

进入到解压目录

./oc cluster up --public-hostname=192.168.8.206



作者:9527华安
链接:https://www.jianshu.com/p/0c55cf50e2ac


打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP