美文网首页OpenShift Origin
openshift 安装流程 all-in-one

openshift 安装流程 all-in-one

作者: Herman7z | 来源:发表于2018-03-22 14:06 被阅读30次

https://docs.openshift.org/3.6/getting_started/administrators.html
http://blog.csdn.net/huqigang/article/details/77882772

开启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.kubeconfig
export 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

相关文章

网友评论

    本文标题:openshift 安装流程 all-in-one

    本文链接:https://www.haomeiwen.com/subject/zkjaqftx.html