Smart Container Orchestration within the Cloud Platform (Part 1: Installation)
Discover the different container orchestration techniques within the Jelastic cloud platform, and how it helps users solve issues with their cloud solutions.
Join the DZone community and get the full member experience.Join For Free
this blog is part of our ongoing series on docker® containers. previously we’ve already described the main features that make containers a production-ready solution for your applications and provide a set of benefits for the project . and today, we’d like to focus on container orchestration within our cloud platform.
the current it market has a rather wide choice of container orchestrators that appeared during last couple of years. a user simply needs to choose what issues they want to solve and what aspects they want to cover while choosing an ideal solution. so let’s consider what you get with jelastic orchestrator that works with containers since 2011 as we’ve already had time to polish the implemented features and we have the required expertise.
all necessary services and tools are provided out-of-the-box to manage your container right from the admin panels for developers and cluster administrators:
- automatic vertical and horizontal scaling
application lifecycle management and
- clustering and high availability
- tunable load balancing
- patches and updates
- pre-defined or custom load triggers and alerts
- tracking statistics and logs
- built-in business analysis tools
docker® container installation
docker® containers were integrated to both the environment topology wizard and jelastic’s marketplace dashboard section. by default, it includes the list of existing templates, available at the public hub registry.
note: that the stacks for java, php, .net, ruby, python and node.js are available by default in certified containers within the jelastic platform alongside docker® implementation. they provide more automation and a wider range of features. if any significant adjustments of stack configurations are not required, we highly recommend using the certified containers that are provided by jelastic.
in addition to the numerous templates available within the official hub registry, jelastic gives you an ability to add your own private or public template from the custom registry hub (e.g. coreos enterprise registry hub ). as a result, they will be listed alongside the default ones.
installing the desired software can be done just in a few clicks – find the required template, choose it to be deployed and specify the preferable name of your new environment (or apply the template addition to the existing one).
in a few minutes, you’ll see your environment contains a new container with the chosen template(s) deployed. each template represents an independent and isolated virtuozzo container with full root access provided via ssh .
you can open each container in a browser with the corresponding button next to it or the most recently added one, when selecting the same button for the whole docker® section.
note: that not all templates have the web-server running out-of-the-box to provide the graphical user interface, thus you’ll get the 502 application down error while trying to access such a container through browser. however that doesn’t mean this image is incorrect or corrupted. if you’d like to ensure the necessary service is really working, check the running processes inside a container using the ssh connection. in this way, you can also make any additional configurations to the container.
docker® container ssh access
the containers don’t have the default management gui and thus you need to use the ssh protocol for these purposes. once you’ve entered your container, you can perform any required configurations, thanks to the full root permissions granted.
the connection can be established in two ways:
- through the jelastic ssh gateway as for any other environment. the flow will be the following:
- generate an ssh keypair
- add your public ssh key to the dashboard
- access your account via ssh protocol
- or, if you don’t want to use ssh keys, you need to attach the public ip address to the required node and perform the next steps:
- open your terminal emulator.
- enter the ssh [username]@[hostname] string, where the username is your login, and hostname is the public ip address (you receive these credentials via email every time a new container is created or added to the environment).
- specify the requested password (can be found in the email also).
if you’ve faced any problems while establishing the connection, check the firewall rules for your container and ensure it has the openssh server running.
in case you’ve forgotten your container’s credentials or lost/deleted the appropriate email, you can restore them at any time. simply click on the reset password button next to the necessary node and you’ll receive a new password via email (or use this option for the whole set of instances in order to renew all of their credentials at once).
developers can easily host and manage all types of applications or services, within a wide choice of data centers around the world with jelastic installed on top. jelastic with integrated docker® standard allows the hosting companies to provide their users with continuous application delivery, fully elastic scalability, integrated orchestration and management for hosting applications in the cloud. go ahead and try this yourself .
in the second part of this blog series about container orchestration , we’ll share the information on how to link the containers in the clusters and change any other settings inside your containers, directly through the jelastic dashboard. so stay tuned!
Published at DZone with permission of Tetiana Fydorenchyk, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.