USING CONTAINERS WITH RED HAT ENTERPRISE LINUX Lightweight isolation and packaging make application delivery easier TECHNOLOGY BRIEF

CONTAINERS SIMPLIFY SECURE AND RELIABLE APPLICATION DELIVERY BY PROVIDING: • Lightweight application isolation • Complete runtime encapsulation • Image-based deployment and update capabilities

Traditional application deployment models move applications from development through testing and into production. Along the way, the application and the runtime environment must be kept in a i nment to ens re that testin an certification one in the prior step remains a i his re ire coor ination is error prone time cons min an re ires settin p an confi rin each en ironment a on the wa itiona cha en es arise when app ications eman ifferent or con ictin environments. Packaging applications with Linux containers addresses these problems and provides an easier and faster application deployment model.

TRADITIONAL APPLICATION PACKAGING AND DEPLOYMENT pp ications whether e e ope in­ho se or pro i e a thir part eman a specific r ntime en ironment to ens re proper performance ome thir ­part app ications re ire a specific en ironment to ensure the provider can and will support them. romotin an app ication from e e opment thro h testin to pro ction re ires imp ementin the correct r ntime en ironment in a three sta es he r ntime en ironment mi ht re ire a specific ep o ment of the operatin s stem share i raries s pportin pro rams or scripts an reso rce confi rations eterminin the e act r ntime en ironment can e a cha en e re irin IT staff to spend time delving into the exact versions of all the various components. Manually implementin the re ire en ironment is time cons min an error prone an m st e one in a consistent manner across all three stages. Problems with a manual approach lead many to consider automation. However, even with automation, the process is often fragile and doesn’t always result in a consistent implementation. This can lead to subtle or hard-to-diagnose problems in production deployments. eepin en ironments consistent can e e en more iffic t when o nee to ep o m tip e app ications or perform re ire r ntime maintenance pp ications often re ire ifferent i raries confi rations or s pportin pro rams which res ts in a ar er set of items to consi er as shown in i re aintenance re irements a ra ate this pro em as ario s components ma re ire updating at different times, but all stages must be kept in sync.

redhat.com

Conflict

App A

Lib X.1

Lib Y.1

App A

Programs or scripts

Lib X.1

Lib Y.1

App B

Lib Y.2

Operating system

Operating system

Hardware

Hardware

DEVELOPMENT ENVIRONMENT

Programs or scripts

TEST ENVIRONMENT RHEL0067

i re chie in a consistent r ntime en ironment across ep o ments can e iffic t an time­cons min ere app ication s i rar ersion con icts with app ication s ersion once the are mo e into the same en ironment ontainers pre ent this in of con ict

hen app ications eman ifferent confi rations or ersions of the same reso rce it can e er har to a oi con icts hese con icts timate ea to app ications that are iso ate in separate deployments or a least-common-denominator approach to deployments. The former can lead to ser er or irt a machine spraw as each app ication re ires its own iso ate en ironment he atter can constrain the e e opment pro ress forcin new app ications to fit an e istin runtime environment.

APPLICATION DEPLOYMENT WITH CONTAINERS Containers can make application deployment easier, providing a consistent application runtime environment across all stages of development, testing, and production. Containers combine the application an its re ire r ntime en ironment in a sin e pac a e his a ows the app ication container to be created in development and then moved, unchanged, through testing and into production. eterminin the proper app ication r ntime confi ration is easier an faster as it is one the administrator or engineer closest to the application. Additionally, because the application container rin s the proper r ntime components an confi rations with it no set p is re ire his e iminates the additional effort per step and avoids errors from environmental differences that plague traditional approaches. Containers also simplify the multiple application scenario by isolating each application. Each application container can ha e a ni e r ntime en ironment a owin the app ication pac a ers to i nore component con icts that e ist etween app ications as shown in i re his a oi s the imitations of the least-common-denominator approach.

redhat.com

TECHNOLOGY BRIEF

Using containers with Red Hat Enterprise Linux

2

App A

Lib X.1

Lib Y.1

App A

Programs or scripts

Lib X.1

Lib Y.1

App B

Programs or scripts

Lib X.1

Lib Y.2

Programs or scripts

App A

Lib X.1

Lib Y.1

App B

Programs or scripts

Lib X.1

Operating system

Operating system

Operating system

Hardware

Hardware

Hardware

DEVELOPMENT ENVIRONMENT

TEST ENVIRONMENT

Lib Y.2

Programs or scripts

DEPLOYMENT ENVIRONMENT RHEL0068

i re ontainers remo e comp e it an increase porta i it container ho s oth the app ication an components re then mo e across en ironments witho t ris of con ict e iminatin comp e s nchroni ation tas s

ire at r ntime

ontainers can

Application developers using containers can choose the best runtime environment for their application. And maintenance of application containers is easier than maintaining applications grouped in an environment. Containers are managed as images, so an update means replacing the entire container with a new one — as opposed to updating individual components. Finally, application containers are deployed on the same system, isolated from one another by the n er in operatin s stem his pro i es the same enefits as iso atin ep o ments on ph sica or virtual machines, but eliminates the resulting sprawl.

CONTAINERS IN RED HAT ENTERPRISE LINUX Red Hat Enterprise Linux 7 and Red Hat Enterprise Linux Atomic Host include the necessary technologies to securely and reliably deploy applications in containers. Red Hat Enterprise Linux 7 includes technologies that provide strong resource control, container isolation, security for containers, packaging, and orchestration capabilities. • Resource control is provided by the control groups (cgroups) feature. It ensures that a container ma on se a efine amo nt of certain s stem reso rces s ch as is memor or • Container isolation is the domain of kernel namespaces (namespaces). It means that each container has its own copy of critical system settings and cannot gain access to other processes or containers running on the same system. • Security is implemented using Security-Enhanced Linux (SELinux). SELinux prevents unauthorized access by a container to both the underlying system and the other containers. • Standardized packaging through the docker format combines an application and its runtime dependencies into a package that can more easily be moved around. • Orchestration is delivered through Kubernetes, a framework for managing and scaling clusters of containers deployed across multiple container hosts.

redhat.com

TECHNOLOGY BRIEF

Using containers with Red Hat Enterprise Linux

3

The technologies that ensure isolation of containers on Red Hat Enterprise Linux 7 also insulate the container runtime from the underlying operating system. This means that the containers may have a runtime environment different from Red Hat Enterprise Linux 7, but the application in the container will still execute in the proper fashion. ABOUT RED HAT Red Hat is the world’s leading provider of open source solutions, using a communitypowered approach to provide reliable and high-performing cloud, virtualization, storage, Linux, and middleware technologies. Red Hat also offers award-winning support, training, and consulting services. Red Hat is an S&P company with more than 70 offices span­ ning the globe, empowering its customers’ businesses. NORTH AMERICA 1 888 REDHAT1 www.redhat.com EUROPE, MIDDLE EAST, AND AFRICA 00800 7334 2835 [email protected] ASIA PACIFIC +65 6490 4200 [email protected] LATIN AMERICA +54 11 4329 7300 [email protected]

facebook.com/redhatinc @redhatnews linkedin.com/company/red-hat

Copyright © 2015 Red Hat, Inc. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, and JBoss are trademarks of Red Hat, Inc., registered in the U.S. and other countries. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

redhat.com #12182477_INC0223776_V2_0215

This allows organizations to deploy a variety of Linux runtime environments, as dictated by their applications, on a common Red Hat Enterprise Linux 7 infrastructure. This makes it easy to adopt new techno o that can enefit app ication e e opers

NEXT STEPS For more detailed information on how to apply containers in your application infrastructure, see the product documentation: access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/ own oa an e a ate e at nterprise in 7 or e at nterprise in redhat.com/products/enterprise-linux/server/download.html Contact Red Hat Sales to learn more or to purchase a subscription.

tomic ost

using containers with red hat enterprise linux - Media16

a i nment to ens re that testin an certification one in the prior step remains a i his re ire coor ination .... redhat.com/products/enterprise-linux/server/download.html.

298KB Sizes 3 Downloads 181 Views

Recommend Documents

using containers with red hat enterprise linux - Media16
Along the way, the application and the runtime environment must be kept in ... en ironment to ens re proper performance ome thir part app ications re ire a ...

red hat enterprise linux atomic host - Media16
New container capabilities in the world's leading enterprise Linux platform. • A certification ... maintaining a stable platform for production deployment. You can ...

red hat enterprise linux atomic host - Media16
has been working on Linux container technologies for more than 10 years. ... Enterprise Linux Atomic Host couples the flexible, modular capabilities of Linux containers with the ... OpenStack Platform, and Amazon Web Services and Google Compute Platf