Arctiq is excited to be working with customers that are starting their journey down the wonderful new world of “Containers” and accelerating “DevOps Practices”. Most of Arctiq’s container projects are mainly focused on Red Hat’s OpenShift Container Platform. If you don’t know about OpenShift yet you can read about it here: In short it’s a Container Platform As A Service (PaaS), but it’s really a lot more that that…
In this Blog I will be showing you how to deploy Red Hat’s Openshift CDK - (Container Development Kit). Think of it as (OpenShift “In a Box”), enabling developers or infrastructure teams to get hands on experience with OpenShift without needing access to a full virtual or physical environment. Red Hat has just release a new version last week - v2.2.0.
Red Hat Container Development Kit provides a pre-built Container Development Environment based on Red Hat Enterprise Linux to help you develop container-based (sometimes called Docker) applications quickly. The containers you build can be easily deployed on any Red Hat container host or platform, including: Red Hat Enterprise Linux, Red Hat Enterprise Linux Atomic Host, and our platform-as-a-service solution, OpenShift Enterprise 3.
This Guide is focused on OSX, here is a link to an Overview and links for other platforms:
Download the Container Development Kit software components from the Red Hat Product Downloads web site. You must log in with a Red Hat account to get access to this page.
We need 2 other tools to get this all up and running:
Vagrant and VirtualBox (Make sure to use the same versions I link to in this blog):
I decided to put all the required software in the following folder on my macbook
Go ahead and unzip the cdk-2.2.0.zip into this folder
Let get things installed - Go ahead and Install VirtualBox and Vagrant
Container Development Kit offers two Vagrantfiles for initializing the Container Development Environment with different services:
OpenShift (rhel-ose): Use the OpenShift Vagrantfile to launch a Red Hat Enterprise Linux Server virtual machine (VM) with OpenShift Enterprise running in it. With OpenShift running, you can use either the web user interface from a web browser on your desktop, or docker, oc, and related commands by logging into the VM.
Kubernetes (rhel-k8s-singlenode-setup): Use the Kubernetes Vagrantfile to start a more generic Container Development Kit VM. Because OpenShift is not running, you can configure a more basic Kubernetes configuration or use Docker directly. We won’t get into this much in this blog, we will focus on OpenShift.
Let’s go ahead and install the Kubernetes Node
Install the OpenShift Node
Note the connection information for you new environment:
==> default: You can now access the OpenShift console on: https://10.1.2.2:8443/console
==> default: To use OpenShift CLI, run:
==> default: $ vagrant ssh
==> default: $ oc login
==> default: Configured users are (/):
==> default: openshift-dev/devel
==> default: admin/admin
==> default: If you have the oc client library on your host, you can also login from your host.
Open up your VirtualBox (You should see the VM up and running)
You can stop the rhel-k8e virtual machine if you want to free up some resources
Connect to your OpenShift WEBUI - https://10.1.2.2:8443/console - admin/admin
You can then go create a project and play around, You will see some default project have been created. (the default project is important, have a look but don’t delete any POD’s or the default project).
I will dig into some example projects in my next blog, We may even experment with ASP.NET on OpenShift. You will see some default project have been created.
Kyle has been at the forefront of open source and transformative solutions throughout his IT career spanning a number of large North American organizations. Kyle focuses on designing and architecting Open Source solutions utilizing modern platforms and disruptive technologies. Providing deep hands-on consulting on today’s greatest IT challanges.
As a partner at Arctiq, Kyle focusses on the following core competencies:
Architecture and design leadership
Open source solution focused on modern platforms and disruptive technologies
DevOps consulting and culture conditioning
Virtualization, containers, security and microservices