openshift开源容器云平台paas搭建

环境:redhat7.6

1.配置yum源

cd /etc/yum.repos.d/ 
wget http://mirrors.aliyun.com/repo/Centos-7.repo
sed -i 's/$releasever/7/g' /etc/yum.repos.d/Centos-7.repo
yum makecache

2.安装docker

sudo yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-engine
sudo yum install -y yum-utils \
  device-mapper-persistent-data \
  lvm2
sudo yum-config-manager \
    --add-repo \
    http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://vbd65v07.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
sudo systemctl enable docker
sudo systemctl stop firewalld

3.安装openshift

首先需要下载openshift,由于存在墙的问题,本文提供介质

链接:https://pan.baidu.com/s/1awBwMcOOlbbFYByJCmwC_A 
提取码:ejaw

下载完后就安装了

hostnamectl set-hostname master.example.com
docker run -it openshift/hello-openshift

mv openshift-origin-server-v1.4.1-3f9807a-linux-64bit.tar.gz /opt
cd /opt
tar -zxvf openshift-origin-server-v1.4.1-3f9807a-linux-64bit.tar.gz
ln -s openshift-origin-server-v1.4.1+3f9807a-linux-64bit /opt/openshift

vim /etc/profile
PATH=$PATH:/opt/openshift/
source /etc/profile

openshift version
cd /opt/openshift
openshift start

4.接下来就可以用浏览器访问openshift了

端口为8443
openshift开源容器云平台paas搭建_第1张图片

你可能感兴趣的:(kubernetes)