opshift

openshift

概念:openshift是一個開源容器雲平臺,基於docker容器技術和kubernetes構建的雲平臺,定位PaaS

一、手工安裝單節點 openshift v 3.11.0

1、準備主機

IP 內存 磁盤
10.139.8.40 2G 20G

​ 1.1、確認主機名能夠被解析

hostnamectl set-hostname oc-server
echo "10.139.8.40 oc-server" >> /etc/hosts

2、安裝docker

​ 2.1)、安裝依賴軟件

sudo yum install -y yum-utils \
device-mapper-persistent-data lvm2  

​ 2.2)、添加Yum源

sudo yum-config-manager \
--add-repo https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo

​ 2.3)、安裝docker軟件包並啓動

yum install docker-ce -y

systemctl start docker && systemctl enable docker

3、下載openshift安裝包

​ 3.1、下載地址:[https://github.com/openshift/origin/releases/download/v1.3.0/openshift-origin-server-v1.3.0-3ab7af3d097b57f933eccef684a714f2368804e7-linux-64bit.tar.gz](openshift v 4.1.0)

wget -O https://github.com/openshift/origin/releases/download/v1.3.0/openshift-origin-server-v1.3.0-3ab7af3d097b57f933eccef684a714f2368804e7-linux-64bit.tar.gz /opt/

cd /opt/ && tar zxvf openshift-origin-server-v1.3.0-3ab7af3d097b57f933eccef684a714f2368804e7-linux-64bit

ln -s openshift-origin-server-v3.11.0-0cbc58b-linux-64bit /opt/openshift

​ 3.2、添加環境變量,驗證版本

echo "PATH=$PATH:/opt/openshift" >> /etc/profile

source  /etc/profile

$ openshift version
openshift v1.3.0
kubernetes v1.3.0+52492b4
etcd 2.3.0+git

4、啓動openshift

openshift start 

瀏覽器訪問:https://10.139.8.40:8443/
在這裏插入圖片描述

5、使用openshift創建項目,運行一個容器應用
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述

查找到之後點擊create即可完成應用創建

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章