OpenShift是红帽的云开发平台即服务(PaaS)。自由和开放源码的云计算平台使开发人员能够创建、测试和运行他们的应用程序,并且可以把它们部署到云中。Openshift广泛支持多种编程语言和框架,如Java,Ruby和PHP等。另外它还提供了多种集成开发工具如Eclipse integration,JBoss Developer Studio和 Jenkins等。OpenShift 基于一个开源生态系统为移动应用,数据库服务等,提供支持。
实验环境
centos7.3_x64
实验软件
docker-ce-19.03.12-3.el7.x86_64
openshift-origin-server-v1.4.1-3f9807a-linux-64bit.tar.gz
软件安装
systemctl stop firewalld.service && systemctl disable firewalld.service
systemctl stop NetworkManager && systemctl disable NetworkManager
systemctl restart ntpd.service && systemctl enable ntpd.service
ntpdate 192.168.10.14 && clock -w
yum install -y docker-ce
systemctl restart docker && systemctl enable docker
docker --version
Docker version 19.03.12, build 48a66213fe
docker pull openshift/hello-openshift
docker images | grep openshift
openshift/hello-openshift
docker run -itd openshift/hello-openshift
tar zxvf /root/openshift-origin-server-v1.4.1-3f9807a-linux-64bit.tar.gz
mv /root/openshift-origin-server-v1.4.1+3f9807a-linux-64bit /usr/local/openshift
cp -pv /etc/profile /etc/profile.bak
echo PATH=$PATH:/usr/local/openshift/ >> /etc/profile && source /etc/profile
openshift version
openshift v1.4.1+3f9807a
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0
cd /usr/local/openshift/
nohup openshift start &
cat /usr/local/openshift/nohup.out | grep 0.0.0.0:8443
I0720 22:12:35.352549 3458 start_master.go:395] Starting master on 0.0.0.0:8443 (v1.4.1+3f9807a)
I0720 22:12:36.831454 3458 master.go:393] Started Kubernetes API at 0.0.0.0:8443/api
I0720 22:12:36.831475 3458 master.go:393] Started Kubernetes API extensions/v1beta1 at 0.0.0.0:8443/apis
dev/dev
netstat -tuplna | grep 8443
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 3458/openshift
tcp 0 0 192.168.10.14:49052 192.168.10.14:8443 ESTABLISHED 3458/openshift
tcp 0 0 192.168.10.14:8443 192.168.10.14:48934 ESTABLISHED 3458/openshift
ps -ef | grep docker
root 2629 1 0 21:48 ? 00:00:00 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
来源:oschina
链接:https://my.oschina.net/u/4266112/blog/4411273