1.Install and configure Docker
Install and configure Docker on your master and node systems according to the
following conditions:
Docker uses the pre-existing volume group docker-vg as a backing volume.
Docker point
...
1.Install and configure Docker
Install and configure Docker on your master and node systems according to the
following conditions:
Docker uses the pre-existing volume group docker-vg as a backing volume.
Docker points to the private registry at workstation.lab.example.com:5000
Docker must NOT use public registries docker.io and registry.access.redhat.com
Docker uses the certificate available from workstation.lab.example.com's dir
of :/etc/pki/tls/certs/example.com.crt
Add the certificate as trusted
In order to test if your docker configurationg is correct you may try to
run:docker pull openshift/hello-openshift
##########################################################################
###on master do that
ssh-keygen -f .ssh/id_rsa -N ''
ssh-copy-id root@master
ssh-copy-id root@node
###on master and node do follow
yum update -y
systemctl start NetworkManager ; systemctl enable NetworkManager
systemctl stop firewalld ; systemctl disable firewalld
yum install docker -y
systemctl start docker ; systemctl enable docker
#docker info ; pvs ; vgs
cat >> /etc/sysconfig/docker-storage-setup < /root/images
cat /root/images|while read image ;do docker pull $image;done
scp /root/images root@node:/root/images
#on node
cat /root/images|while read image ;do docker pull $image;done
##########################################################################
2.Install OpenShift Enterprise
Install OpenShift Enterprise(OpenShift Container Platform) on master using the
official installer and configure systems as follows:########################
System Role
master.lab.example.com MASTER
node.lab.example.com NODE
########################
The installation will be RPM based.
The applications subdomain is set to cloudapps.lab.example.com
The installer uses the root user for ssh access Note:(ssh keys have already been
setup).
##########################################################################
#on master and node
yum -y install wget git net-tools bind-utils iptables-services bridge-utils
atomic-openshift-docker-excluder atomic-openshift-excluder atomic-openshiftutils
atomic-openshift-excluder unexclude
cp /etc/sysconfig/docker{,.back}
#on master
atomic-openshift-installer install
Are you ready to continue[y/n]: y
User for ssh access[root]: root
(1) Openshift Container Platform
(2) Registry
Choose a variant from above: [1]: Enter
Enter hostname or IP address: master.lab.example.com
Will this host be an openshift master?[y/N]: y
Will this host be RPM or Container based? [rpm]: Enter
Do you want to add additional hosts? [y/N]: y
Enter hostname or IP address: node.lab.example.com
Will this host be an openshift master?[y/N]: N
Will this host be RPM or Container based? [rpm]: Enter
Do you want to add additional hosts? [y/N]: N
New default subdomain[]: cloudapps.lab.example.com //实际考试根据实际情况填写
>Specify your http proxy? Enter
>Specify your https proxy? Enter
Do the above facts look correct?[y/N]: y
Are you ready to continue[y/n]: y
systemctl status atomic-openshift-master.service
#on master and node
systemctl status atomic-openshift-node.service
oc get nodes //检查 maste 和 node 节点状态是否正常
[Show More]