OpenShift: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Line 21: Line 21:
sudo oc cluster up
sudo oc cluster up
</syntaxhighlight>
</syntaxhighlight>
=Pods=
OpenShift Pods contain containers. It is recommended one pod per container.
=Deployment=
There are 3 ways to deploy an openshift container.
*Predefined containers
**Manual
**Dockerfile
**Yaml
**Most flexible
*Openshift Application catalogue
**Predefined application
**Easy to deploy
**Easy to integrate into custom applications
*Source to Image (s2i)
**Fastest to deploy
**Support for several programming language
**Customizable

Revision as of 22:26, 23 December 2020

Install

apt-get install docker.io -y
systemctl start docker
systemctl enable docker
systemctl status docker

wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
tar -xvzf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
cd openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit
sudo mv oc kubectl /usr/local/bin/

sudo mkdir /opt/openshift
sudo cd /opt/openshift
sudo oc cluster up  --public-hostname=your-server-ip

Start Stop Cluster

sudo oc cluster down
sudo oc cluster up

Pods

OpenShift Pods contain containers. It is recommended one pod per container.

Deployment

There are 3 ways to deploy an openshift container.

  • Predefined containers
    • Manual
    • Dockerfile
    • Yaml
    • Most flexible
  • Openshift Application catalogue
    • Predefined application
    • Easy to deploy
    • Easy to integrate into custom applications
  • Source to Image (s2i)
    • Fastest to deploy
    • Support for several programming language
    • Customizable