openshift单机版安装
作者:吴业亮博客:wuyeliang.blog.csdn.net一、关闭SELINUXsetenforce 0sed -i"s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config二、安装docker1、配置源cat <<END >/etc/yum.repos.d/repo.repo[repo...
·
作者:吴业亮
博客:wuyeliang.blog.csdn.net
一、关闭SELINUX
setenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config
二、安装docker
1、配置源
cat <<END >/etc/yum.repos.d/repo.repo
[repo]
name=repo
baseurl = https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/x86_64/stable/
enabled=1
gpgcheck=0
END
2、安装docker-ce
yum install docker-ce
3、配置国内源
# mkdir -p /etc/docker
# tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://***.mirror.aliyuncs.com"]
}
EOF
4、启动docker
systemctl enable docker
systemctl start docker
三、安装openshift
1、下载地址:https://github.com/openshift/origin/releases
2、上传到/opt目录
mv openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz /opt
3、解压
cd /opt
tar -zxvf openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz
4、目录太长,创建一个软链接
ln -s openshift-origin-server-v3.11.0-0cbc58b-linux-64bit /opt/openshift
5、 修改/etc/profile,加入环境变量
PATH=$PATH:/opt/openshift/
执行生效
# source /etc/profile
6、启动集群
oc cluster up --skip-registry-check=true --public-hostname=”10.10.10.114”
启动完成出现
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
重新载入防火墙
firewall-cmd --reload
8、浏览器访问 https:// 10.10.10.114:8443
用户名 developer 密码:developer
更多推荐
已为社区贡献5条内容
所有评论(0)