openshift meetup bangalore

17
OpenShift overview - Suraj Deshmukh @surajd_

Upload: suraj-deshmukh

Post on 05-Apr-2017

64 views

Category:

Software


0 download

TRANSCRIPT

Page 1: OpenShift meetup Bangalore

OpenShift overview- Suraj Deshmukh @surajd_

Page 2: OpenShift meetup Bangalore

Introduction● OpenShift Origin is an application platform where developers and teams can

build, test, deploy, and run their applications.● Simply, OpenShift is open-source PAAS from Red Hat

Page 3: OpenShift meetup Bangalore

Why OpenShift?● You don't have to waste time in setting up environment.● All you need to do is develop apps.● To make life easier add webhooks to Jenkins, Github, etc.● Provides a standard way for admins to resource monitoring, scaling,

application monitoring, performance, etc rather than spending time on setting up environment.

Page 4: OpenShift meetup Bangalore

Architecture

Page 5: OpenShift meetup Bangalore
Page 6: OpenShift meetup Bangalore

Architecture● Docker and Kubernetes are core components of OpenShift.● Docker is core and Kubernetes is heart and kidney of OpenShift that keeps it

running.● OpenShift runs on top of Kubernetes cluster, with data stored in etcd.

Page 7: OpenShift meetup Bangalore

Things OpenShift adds to Kubernetes● Source code management, builds, deployments.● Managing and promoting images using Source to Image (S2I) and Internal

Docker Registry.● OpenShift is more of developer facing and Kubernetes is more of operations

teams.● Dedicated web console● Team and User tracking for organizing a large developer organization.● App management at scale.

Page 8: OpenShift meetup Bangalore

Contributions from RHT/OpenShift to Kubernetes

Page 9: OpenShift meetup Bangalore

Benefits of OpenShift over orchestration providers● So when using Docker or Kubernetes directly you start with containerizing

your application i.e. build your own containers.

● But with OpenShift you don’t have to worry about it, OpenShift will build containers for you.

● But if you want to run your own containers you can do that as well.

Page 10: OpenShift meetup Bangalore

Demo!● Building and deploying app on OpenShift● Hexboard App https://github.com/2015-Middleware-Keynote/hexboard

Page 11: OpenShift meetup Bangalore

Source to Image● Source to Image, it downloads your code, detects the environment, builds the

code as a developer would do, on a base image specific to that environment, if build is successful the image is pushed to internal OpenShift registry.

● Enables rapid deployment.● Allows the underlying image to be up to date with somebody else managing it

for you.

Page 12: OpenShift meetup Bangalore

OpenShift Router● It’s a point of contact for external world.● By default it is HAProxy based router, but OpenShift supports other routers as

well.● It looks at the host header of incoming traffic and depending on it, the traffic

will be assigned to particular service and service will then pass it to pods.● It can be deployed by cluster admin.

Page 14: OpenShift meetup Bangalore

Try deploying apps yourself● Django application https://github.com/openshift/django-ex● NodeJS application https://github.com/ryanj/http-base and https://github.

com/openshift/nodejs-ex● php application https://github.com/openshift/cakephp-ex● Ruby application https://github.com/openshift/ruby-ex

Page 16: OpenShift meetup Bangalore

OpenShift offerings● OpenShift Origin - OpenSource upstream project.● OpenShift Online - A publicly hosted PAAS for individual developers or teams.● OpenShift Dedicated - Deploy, manage and support OpenShift instances

running on AWS.● OpenShift Enterprise - For organizations who want to deploy and manage

their OpenShift instances on their choice of on-premise hardware or certified cloud provider.

Page 17: OpenShift meetup Bangalore

References● Red Hat Launches OpenShift Dedicated, Delivering its Container Application Platform as a Public Cloud Offering

https://www.redhat.com/en/about/press-releases/red-hat-launches-openshift-dedicated-delivering-its-container-application-platform-public-cloud-offering

● What Is the OpenShift Architecture? https://docs.openshift.org/latest/architecture/index.html● Red Hat’s contribution to Kubernetes http://www.slideshare.net/drettori/kube-12● OpenShift 3 Walkthrough https://www.youtube.com/watch?v=yFPYGeKwmpk● Using GitHub Webhooks on your local machine https://www.youtube.com/watch?v=--wNO4lV6WA● Docker, Kubernetes, OpenShift: Deploy, Scale, Build - Ryan Jarvinen https://www.youtube.com/watch?

v=jRzYv7KaZKo● S2I https://docs.openshift.com/enterprise/3.0/architecture/core_concepts/builds_and_image_streams.html#source-

build