Be a part of the cutting-edge containerization software->Your first step towards deploying an application on openshift in simplest way.
Openshift is an on-premises platform as a service built around Docker containers orchestrated and managed by Kubernetes on a foundation of Red Hat Enterprise Linux. It is the product of Red Hat. OpenShift Online is the platform offered as software as a service, and Openshift dedicated is the platform offered as a managed service.
The Openshift UI has various functionalities, allowing one to monitor the container resources, container health, the nodes the containers reside on, IP addresses of the nodes, etc. The key store can be accessed via the Secrets in Openshift. The OC CLI command line tool also offers similar functionalities.
The main difference between OpenShift and Kubernetes is the concept of build-related artifacts. In OpenShift, such artifacts are considered first class Kubernetes resources upon which standard Kubernetes operations can apply. OpenShift's client program, known as "oc", offers a superset of the standard capabilities bundled in the mainline "kubectl" client program of Kubernetes. Using this client, one can directly interact with the build-related resources using sub-commands (such as "new-build" or "start-build"). In addition to this, an OpenShift-native pod build technology called Source-to-Image (S2I) is available out of the box. For the OpenShift platform, this provides capabilities equivalent to what Jenkins can do.
CI/CD(Continious Integration/ Integration Deployment) is one of the popular use-cases for OpenShift Container Platform. OpenShift provides a certified Jenkins container for building Continuous Delivery pipelines and also scales the pipeline execution through on-demand provisioning of Jenkins slaves in containers. This allows Jenkins to run many jobs in parallel and removes the wait time for running builds in large projects. OpenShift provides an end-to-end solution for building complete deployment pipelines and enables the necessarily automation required for managing code and configuration changes through the pipeline out-of-the-box.
· Buisness leaders feels openshift saves time and money.
· Behind the openshift enterprise, Kubernetes is used.
· Openshift Enterprise does not have personal container Engine , so they use Kubernetes Orchestration Engine.
· Openshift automatically download the codes, Builds, test etc.
· Openshift knows how to contact SCM(Source Control Management)
· Openshift knows how to build image, test and store image and create a private repository for you.
· Openshift have internal system for monitoring and also creates performance graphs.
· Openshift is meant for Container Engine RHOCP(Red Hat Openshift Container Platform).
· Complete lifecycle of container is managed by:- 1.Build configuration 2. Deployment Configuration
Building and Deploying Ruby Application on Openshift:-
1) Login into your Openshift Client by using the API-endpoint. Create a project with name of your choice and use command ”oc projects” to get into the current project. Before creating any app you can check for pods, Build-configuration(bc), deployement-configuration(dc) and image stream(is).
2. Launch a new-application using the URL of the ruby given in the command for new-project itself. You can check for bc, dc and the pods and can see the lifecycle of the newly created app.
3. You can view routes but it isn’t exposed yet. So you will not find URL and won’t be able to access your newly created application. You need to expose services using the “oc expose svc” followed by deployment config name. The pod will now be exposed and you can visit the URL through Web UI or through CLI.
4. You will notice when you view your pods you can see the build and deploy pods to as a part of their lifecycle. To test it delete the current pod. As soon as the pod goes down, the new pod is created which is the most unique feature provided by the Kubernetes. You can use the curl command for getting or sending data using URL syntax.
5. You can view your route that you have exposed by going in the Web UI and clicking on the URL under the routes.
And this is how you deploy a simple application on openshift. Congratulations! You have deployed your first app over openshift. Many more steps to conquer which will be posted on next blog. Stay tuned! . Suggestions are most welcomed.