centos8 install openshift

1安装依赖
# yum install -y yum-utils device-mapper-persistent-data lvm2
# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# yum install docker-ce docker-ce-cli containerd.io

Error: Problem: package docker-ce-3:19.03.4-3.el7.x86_64 requires containerd.io >= 1.2.2-3 Then install the new version of containerd.io
#dnf install https://download.docker .com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm

2 Install the remaining two
# yum install docker-ce docker-ce-cli
#sudo systemctl start docker
#docker --version
Power-on self-start
#systemctl enable docker

3启动docker
systemctl enable docker
systemctl start docker

4 Install openshift
download address: https://github.com/openshift/origin/releases
find: openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz download
https://github.com/openshift /origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
upload to /opt directory
#mv openshift-origin-server-v3.11.0-0cbc58b -linux-64bit.tar.gz /opt

5解压
cd /opt
#tar -zxvf openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz

6 The directory is too long, create a soft link
#ln -s openshift-origin-server-v3.11.0-0cbc58b-linux-64bit /opt/openshift

7 Modify /etc/profile, add environment variable
PATH=$PATH:/opt/openshift/

8 Execution takes effect
# source /etc/profile

9 Start the cluster
close iptabls firewall, or clear rules
# iptables -F
#oc Cluster --skip-Registry-up to true --public = the Check-hostname = "10.10.10.114"
completion of startup appears
The server is accessible via web console at :
https://IP:8443
You are logged in as:
User: developer
Password:
To login as administrator:
oc login -u system:admin

10 Configure firewall
#firewall-cmd --zone=public --add-port=8443/tcp --permanent


11Reload the firewall #firewall-cmd --reload

12 Browser visit https:// IP:8443
Username developer Password: developer

Guess you like

Origin blog.csdn.net/seaship/article/details/107835054