Giter Club home page Giter Club logo

learn-openshift-1's Introduction

Learn OpenShift

"Learn OpenShift" is a step by step hands-on guide which gives you some practical OpenShift-related examples

Labs

The repository gives a number of folders which proides all files required for a Lab. The following labs are included:

Lab Description
Lab 0 Creating lab environment (please see below)
Lab 1 Overview of the lab environment
Lab 2 Managing user projects
Lab 3 Managing Pods
Lab 4 Managing Services
Lab 5 Managing Routes
Lab 6 Application deployment with oc new-app
Lab 7 Injecting configuration data using config maps and secrets
Lab 8 Using OpenShift templates
Lab 9 Using persistent storage
Lab 10 Building application from Dockerfile
Lab 11 Building applications from source code

Creating lab environment

CentOS 7 minimal is required to deploy this lab environment.

Virtual Machine

The repository includes a Vagrantfile which deploys a VM with the following configuration:

Option Value
RAM 6000M
vCPU 2
IP 172.24.0.11
Hostname openshift.example.com
Box centos/7

Additional configuration

The VM is customized as follows:

  • docker and git packages are installed
  • docker Linux group is created
  • the vagrant user is a member of the docker Linux group (this allows to use Docker client under unprivileged user)
  • OpenShift 3.11 repository is configured
  • OpenShift client utility is installed
  • OpenShift cluster is deployed using "oc cluster up"
  • OpenShift public url is set to openshift.172.24.0.11.nip.io

Host machine requrements

The host machine can be configured on the following OS:

  • MacOS
  • Windows
  • Fedora Linux
  • CentOS 7

The following software is required:

  • VirtualBox(Windows and MacOS)
  • libvirt(Linux only)
  • Vagrant
  • git
  • vim

Starting lab environment

The lab environment can be provisioned using Vagrant as follows:

git clone https://github.com/li9com/learn-openshift.git
cd learn-openshift
vagrant up

Connecting to Lab VM

Once VM is provisioned, you may connect to it using SSH as follows:

vagrant ssh

Note! You will be connected as the "vagrant" user which is allowed to use sudo to run commands under the root account, for example:

sudo yum install -y epel-release

You may access OpenShift console using the following URL:

https://openshift.172.24.0.11.nip.io:8443/console/

Authors

Artemii Kropachev

learn-openshift-1's People

Contributors

neoncyrex avatar gorshunovr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.