Container and Cloud Platform

7:51 PM
Container and Cloud Platform -

Container is a lightweight virtualization technology and has gained considerable popularity lately. This post covers LXC (Linux Containers) support in Cloud Platform, providing Docker containers on CoreOS vms of Cloud Platform provisioned above

Cloud Platform supports Linux Containers (LXC) as first-class companies like the other hypervisors like Xen, KVM, VMware. A TAR file of the container file system is used as a template. LXC container can be used with such templates. LXC container run from a directory that serves as the root file system. Similar to KVM, LXC container with lxc driver

Picture1

CoreOS is is a minimal Linux distribution created with Docker support with libvirt. CoreOS has cloud-init support also. CoreOS VMs are supported in Cloud Platform hosted with templates in http://dl.openvm.eu/cloudstack/coreos/x86_64.

More documentation on deploying VMs CoreOS here https://coreos.com/os /docs/latest/booting-on-cloudstack.html.

These templates with scripts before seeded required fetch user data, set SSH keys. A pool of CoreOS VMs are used to Cloud Platform. Tools like Kubernetes can be used shipyard Container orchestrate this CoreOS VMs. Docker container created directly by cloud-init, which are provided to CoreOS vm user data using.

docker

Below is cloud-config create httpd container and also setup port forwarding on port 8000

# cloud-config

coreos:

units:

- name: docker.service

command start

- name: web.service

command: start

content: |

[Unit]

After = docker .service

Requires = docker.service

Description = Start web server container

[Service]

TimeoutStartSec = 0

ExecStartPre = / usr / bin / httpd docker pull: 2.4

ExecStart = / usr / bin / docker run -d -p 8000: 80 httpd 2.4

deployVirtualMachine with the userdata parameter = base64 formated top View data contained

supporting CoreOS and future support for OS like Atomic and RanchesOS, Cloud Platform along with rich networking features can be a good platform for the container application.

Previous
Next Post »
0 Komentar