Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Project Atomic [rootconf2015]

450 views

Published on

Running your containers in sane environment, Project Atomic, and associated tools.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Project Atomic [rootconf2015]

  1. 1. Running your containers in a sane environment, Project Atomic Aditya Patawari Contributor to Fedora Admin team Lead Engineer (Infrastructure) at BrowserStack.com aditya@adityapatawari.com adimania on freenode irc http://blog.adityapatawari.com April 21, 2015 Aditya Patawari Running your containers in a sane environment, Project Atomic
  2. 2. Topics What is the problem? Project Atomic is here! .. Along with some components Starting our Atomic Host Demo Aditya Patawari Running your containers in a sane environment, Project Atomic
  3. 3. What is the problem? We need a stable environment to run containers We need to support automation Managing hosts should involve minimal efforts Aditya Patawari Running your containers in a sane environment, Project Atomic
  4. 4. Project Atomic is here! Minimal operating system Benefits of our favorite Enterprise Linux Robust atomic upgrades and systemd Ready to take on cloud, virtualized or bare metal Aditya Patawari Running your containers in a sane environment, Project Atomic
  5. 5. .. including rpm-ostree .. Bootable, immutable, versioned filesystem trees Composed from standard rpms Atomic upgrade and rollbacks Only /etc and /var are writable Aditya Patawari Running your containers in a sane environment, Project Atomic
  6. 6. .. and Systemd .. System and service manager for Linux Replacing the init in Centos 7 Highly modular and much more powerful than sysV Check out http://0pointer.de/blog/projects/why.html Aditya Patawari Running your containers in a sane environment, Project Atomic
  7. 7. .. also Introducing Cockpit.. Aditya Patawari Running your containers in a sane environment, Project Atomic
  8. 8. .. and lastly Kubernetes .. Master-slave arch Boot new containers Scalable and fault tolerant Lots of examples and setup instructions at https://github.com/GoogleCloudPlatform/kubernetes Aditya Patawari Running your containers in a sane environment, Project Atomic
  9. 9. Starting Atomic Host Atomic host needs cloud-init data Info about the host, i.e. meta-data Info about the user, i.e. user-data Aditya Patawari Running your containers in a sane environment, Project Atomic
  10. 10. cloud-init data $ cat meta-data instance-id: iid-local01; local-hostname: myhost; $ cat user-data #cloud-config password: mypassword ssh_pwauth: True chpasswd: { expire: False } ssh_authorized_keys: - ssh-rsa ... foo@foo.com $ genisoimage -output init.iso -volid cidata -joliet -rock user-data meta-data Aditya Patawari Running your containers in a sane environment, Project Atomic
  11. 11. Demo! Start a container. Verify that it works. Kill the container. OOOOO... Magic! Aditya Patawari Running your containers in a sane environment, Project Atomic
  12. 12. Questions? Now is your chance :) Aditya Patawari Running your containers in a sane environment, Project Atomic

×