Openshift
Revision as of 18:01, 18 May 2020 by Peter.callaghan (talk | contribs) (Updating manual installation instructions.)
Overview
- The next generation application hosting platform developed by Red Hat, also known as "Platform as a Service"
- OpenShift Origin
- OpenShift User Guide
- OpenShift Origin Comprehensive Deployment Guide
Tasks
- Try OpenShift Online
- Get OpenShift Origin
Procedure
Try OpenShift Online
You can try out OpenShift for free with OpenShift Online. Just sign up for an OpenShift Online account and create your first application in minutes. You need to provide a valid email address when signing up for an OpenShift online account.
Create a WordPress App on your free gear with your first name as part of the site title. e.g. "Raymond's Blog".
Show the URL of your WordPress App URL to your professor.
Collect the following information after creating your first App on OpenShift
- Procedure to make code changes to your app. (need a git client)
- Information about installing and using rhc (RedHat Client tool) - Try this link
- Manage your application from the command line Guide
- Command to ssh to your application container - e.g. "ssh 570694eb2d527172d400012e@python-ictseneca.rhcloud.com"
Get OpenShift Origin
There are two ways to implement OpenShift on your own hardware:
- The easiest way to run OpenShift locally is to download an image suitable for running on a VM. The image will work on KVM,VirtualBox or VMWare.
- You can also deploy OpenShift Origin manually.
- Note that this must be done on your host. Using these instructions on a VM results in an installation that works, but will not allow access to the GUI.
- yum update -y
- yum install yum-utils
- yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- yum install --nobest docker-ce
- mkdir /etc/docker /etc/containers
- vi /etc/containers/registries.conf [registries.insecure] registries = ['172.30.0.0/16']
- vi /etc/docker/daemon.json { "insecure-registries": [ "172.30.0.0/16" ] }
- systemctl daemon-reload
- systemctl restart docker
- systemctl enable docker
- firewall-cmd --permanent --new-zone dockerc
- docker network inspect bridge #(look for the subnet address)
- firewall-cmd --permanent --zone dockerc --add-source 172.17.0.0/16 #use the address range from the previous step.
- firewall-cmd --permanent --zone dockerc --add-port={80,443,8443}/tcp
- firewall-cmd --permanent --zone dockerc --add-port={53,8053}/udp
- firewall-cmd --reload
- wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
- tar xvf openshift-origin-client-tools*.tar.gz
- cd openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/
- mv oc kubectl /usr/local/bin
- oc cluster up
- oc login -u system:admin