安装openshift
1、下载地址: https://github.com/openshift/origin/releases
3.11下载: https://github.com/openshift/origin/releases/tag/v3.11.0
https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz
{wget https://github.com/openshift/origin/releases/download/v3.9.0/openshift-origin-client-tools-v3.9.0-191fece-linux-64bit.tar.gz tar -zxvf openshift-origin-client-tools-v3.9.0-191fece-linux-64bit.tar.gz}
2、上传到/opt目录
mv openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz /opt
1.
3、解压
cd /opt
tar -zxvf openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz
1.
2.
4、目录太长,创建一个软链接
ln -s openshift-origin-server-v3.11.0-0cbc58b-linux-64bit /opt/openshift
1.
5、 修改/etc/profile,加入环境变量
PATH=$PATH:/opt/openshift/
1.
执行生效
source /etc/profile
1.
6、启动集群
oc cluster up --skip-registry-check=true --public-hostname=”10.10.10.114”
1.
启动完成出现
The server is accessible via web console at:
https://10.10.10.114:8443
You are logged in as:
User: developer
Password: <any value>
To login as administrator:
oc login -u system:admin
7、配置防火墙
firewall-cmd --zone=public --add-port=8443/tcp --permanent
1.
重新载入防火墙
firewall-cmd --reload
1.
8、浏览器访问 https:// 10.10.10.114:8443
https://www.jianshu.com/p/dc0edfbbc5eb
用户名 developer 密码:developer
参考连接:
openshift官网
openshift单机版安装
openshift集群ansible安装
Centos7 下安装openshift
OpenShift介绍