Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

OpenShift 3.6 - Release Candidate (A Hands-On)

July 28, 2017
Alessandro Arrichiello
Related topics:
ContainersLinuxKubernetes
Related products:
Red Hat OpenShift Container PlatformStreams for Apache Kafka

    Hi, Everybody!

    Today I want to introduce you to some features of OpenShift 3.6 while giving you the chance to have a hands-on experience with the Release Candidate.

    First of all:

    1. It's a Release Candidate and the features I'll show you are marked as Tech Preview, so use them for testing purpose ONLY!
    2. We cannot use Minishift just because there is no Minishift updated yet. Anyway, I'll show how could use its base iso-image.
    3. I don't want to use 'oc cluster up' in a virtual machine just because setting up a virtual machine, to run it, would be a waste of time.

    Prerequisites

    This is our grocery list, you'll find below all the software needed for accomplishing our goal: test OpenShift 3.6 RC.

    1. Latest oc binary available on Github at https://github.com/openshift/origin/releases/tag/v3.6.0-rc.0.
    2. Docker-Machine: A Virtual Machine with docker installed! - "Docker Machine is a tool that lets you install Docker Engine on virtual hosts, and manage the hosts with docker-machine commands. You can use Machine to create Docker hosts on your local Mac or Windows box, on your company network, in your data center, or on cloud providers" -  https://docs.docker.com/machine/install-machine/.
    3. Virtualization software (VirtualBox/Libvirt/KVM/Xhyve).
    4. Enough RAM for running a 4GB (or any other Minishift-like) virtual machine.

    Please Note:

    • If you didn't use OpenShift Clients (oc) binary before, it's not so hard: just unpack it, place it somewhere and run it.
    • If you didn't install docker-machine before, just follow the how-to provided in the link before: it will be easy!
    • Depending on the Virtualization layer you'll use, you may need configuring/installing an appropriate driver to let docker-machine works with it, these are some examples:
      • Virtualbox: https://docs.docker.com/machine/drivers/virtualbox/
      • Libvirt/KVM: https://github.com/dhiltgen/docker-machine-kvm
      • Xhyve: https://github.com/zchee/docker-machine-driver-xhyve
    • In the following steps, I'll use commands for my Libvirt/KVM driver: sorry mac/win-users! But you will easily adapt commands to your driver, don't worry! So, be aware of editing commands when you see "-kvm-" options!
    • All the commands can run as a standard user: we don't need super powers!

    Let's start: the brand new Service Catalog

    If you're here, I suppose you've already configured your docker-machine, didn't you? Read the previous paragraph!

    As I mentioned earlier we cannot use the Minishift binary to build our Openshift VM, anyway, we can use its iso image as a source for creating our docker-machine:

    $ docker-machine create -d "kvm" --kvm-boot2docker-url https://github.com/minishift/minishift-b2d-iso/releases/download/v1.0.2/minishift-b2d.iso --kvm-cpu-count 4 --kvm-memory 4096 --engine-insecure-registry 172.30.0.0/16 openshift

    In the previous command, we're creating an "Openshift" named virtual machine, starting from Minishift boot2docker image, with some infrastructural configuration (CPU/RAM) and most importantly with the Openshift's insecure registry subnet configuration (172.30.0.0/16).

    You can check the result of the previous command also by running:

    $  docker-machine ls
        NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
        openshift - kvm Running tcp://192.168.42.53:2376 v1.12.3

    Now we're ready to launch our very useful "oc cluster up" command full of options for better interacting with the docker-machine we've just prepared:

    $ oc cluster up --docker-machine=openshift --service-catalog=true --public-hostname="$(docker-machine ip openshift).nip.io" --routing-suffix="apps.$(docker-machine ip openshift).nip.io" --use-existing-config=true --host-data-dir='/var/lib/origin/openshift.local.data'

    In the previous command, we just set the public-hostname for our Openshift's platform, its wildcard DNS for routing apps, some options for letting it being persistent and finally the option for setting up the new brand new Service Catalog.

    Once  the OpenShift platform starts we need to log in as system:admin and then grant unauthenticated access to the template service broker API for using it with the Service Catalog:

    $ oc login -u system:admin
        $ oc adm policy add-cluster-role-to-group system:openshift:templateservicebroker-client system:unauthenticated system:authenticated

    Now we can test the new Service Catalog interface by going to the Openshift main page! (You should find it at the end of the previous "oc cluster up" command).

     

    One step forward: Ansible Service Broker

    At this point, we're ready to deploy one of the latest features: Ansible Service Broker.

    First, we have to clone its Github's repository:

    $ git clone https://github.com/openshift/ansible-service-broker

    Then we have to create a brand new a project for deploying Ansible Service Broker's template:

    $ oc new-project ansible-service-broke
        $ oc process -f ansible-service-broker/templates/deploy-ansible-service-broker.template.yaml -p BROKER_IMAGE=ansibleplaybookbundle/ansible-service-broker:latest | oc create -f -

    Then we should see some new pods running in our project!

    $ oc get pods
        NAME READY STATUS RESTARTS AGE
        asb-2357364550-4jmcj 1/1 Running 0 1m
        etcd-2338997634-05nz5 1/1 Running 0 1m

    Here we are: Ansible Service Broker and its etcd database are running!

    We're really close to the goal; we need to create the missing connection between ASB (Ansible Service Broker) and Openshift:

    $ cat << EOF > broker.yaml
        apiVersion: servicecatalog.k8s.io/v1alpha1
        kind: Broker
        metadata:
          name: ansible-service-broker
        spec:
          url: https://asb.ansible-service-broker.svc:1338
        EOF
        $ oc create -f broker.yaml

    If you now log into the interface, you should see a bunch of brand new templates available!

    The ones ending with "(APB)" are the Ansible Playbook Bundle's template!

    PLEASE READ: One more step is required, just because some of the containers used by APB templates requires "root" permissions, we need to enable the ANYUID Security Context for every authenticated user (eventually you may restrict it to the user 'developer'):

    $ oc adm policy add-scc-to-group anyuid system:authenticated

    That's all folks! Enjoy you're OpenShift 3.6 RC and don't forget about using it  ONLY for testing purposes!

    Ciao,

    About Alessandro

    Alessandro Arrichiello is a Solution Architect for Red Hat Inc. He has a passion for GNU/Linux systems, which began at age 14 and continues today. He worked with tools for automating Enterprise IT: configuration management and continuous integration through virtual platforms. He’s now working on distributed cloud environment involving PaaS (OpenShift), IaaS (OpenStack) and Processes Management (CloudForms), Containers building, instances creation, HA services management, workflows build.


    If you know the basic commands of Linux then download the Advanced Linux Commands Cheat Sheet, this cheat sheet can help you take your skills to the next level.

    Last updated: September 24, 2024

    Recent Posts

    • A day in the life of an NVIDIA H100 on Red Hat OpenShift 5

    • Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    Red Hat Developers logo

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    Red Hat Developer

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility
    Ask AI