Programming > CODING SOLUTION > Install and configure Docker on your master and node systems according to the following conditions:  (All)

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

Document Content and Description Below

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 v... olume. 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 <<EOF #when train,there no vg,so use the DEVS DEVS=/dev/vdb VG=docker-vg SETUP_LVM_THIN_POOL=yes EOF systemctl stop docker rm -rf /var/lib/docker/* docker-storage-setup #docker info vim /etc/sysconfig/docker ADD_REGISTRY='--add-registry workstation.lab.example.com:500' BLOCK_REGISTRY='--block-registry docker.io --block-registry registry.access.redhat.com' systemctl restart docker yum install ca-certificates update-ca-trust enable scp root@workstation.lab.example.com:/etc/pki/tls/certs/example.com.crt /etc/pki/ca-trust/source/anchors/ update-ca-trust extract #on master #docker-registry-cli workstation.lab.example.com:5000 search openshift3 ssl #docker pull openshift/hello-openshift docker-registry-cli workstation.lab.example.com:5000 search openshift ssl | awk '$2~"Name" || $1~"Tag"{print $NF}'|xargs -n 2|sed 's/ /:/g' > /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]

Last updated: 2 years ago

Preview 1 out of 11 pages

Buy Now

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

We Accept

Reviews( 0 )

$4.00

Buy Now

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

135
0

Document information


Connected school, study & course


About the document


Uploaded On

Jan 23, 2023

Number of pages

11

Written in

Seller


seller-icon
PAPERS UNLIMITED™

Member since 3 years

509 Documents Sold

Reviews Received
55
20
8
2
8
Additional information

This document has been written for:

Uploaded

Jan 23, 2023

Downloads

 0

Views

 135

Document Keyword Tags

More From PAPERS UNLIMITED™

View all PAPERS UNLIMITED™'s documents »

$4.00
What is Scholarfriends

In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·