-
参考
OpenShift Origin 快速入门
https://wiki.centos.org/zh/SpecialInterestGroup/PaaS/OpenShift-Quickstart
CentOS 7安装Docker
http://itmuch.com/docker/docker-2/
centos 7 安装和配置vncserver
https://www.cnblogs.com/littlemonsters/p/5779331.html
VNC Viewer
https://www.realvnc.com/en/connect/download/viewer/
Local Cluster Management
https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md -
环境说明
系统:CentOS 7.4 -
什么是 openshift
目前,OpenShift 是基于开源kubernetes 做的非常好的管理docker 的paas 的平台。
OpenShift Origin 是用来支持 OpenShift 产品的一个上游社区项目,围绕Docker 容器和 Kubernetes 集群技术,一套来进行应用生命周期管理的 DevOps工具,它提供了一个完整的开源容器应用平台。
openshift.jpg
搭建部署
关闭防火墙
安装docker
修改 /etc/docker/daemon.json 文件并添加上 registry-mirrors 键值。注意重新启动docker
$ vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://registry.docker-cn.com"],
"insecure-registries": ["172.30.0.0/16"]
}
- 开始安装开启openshift origin
yum install centos-release-openshift-origin
yum install origin-clients
oc cluster up --skip-registry-check=true
mplates/postgresql"
I1107 16:53:47.865953 13306 interface.go:41] Finished installing "centos-imagestreams" "openshift-router" "sample-templates" "openshift-web-console-operator" "openshift-image-registry" "persistent-volumes"
Login to server ...
Creating initial project "myproject" ...
Server Information ...
OpenShift server started.
The server is accessible via web console at:
https://127.0.0.1:8443
You are logged in as:
User: developer
Password: <any value>
To login as administrator:
oc login -u system:admin
浏览器中输入 :https://127.0.0.1:8443/, 输入帐号密码:developer/developer
2018-11-07 16-57-30 的屏幕截图.png
2018-11-07 16-57-56 的屏幕截图.png
网友评论