Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Habitat 201 - Habitat in the Ecosystem

Habitat 201 - Habitat in the Ecosystem

Slides from my ChefConf 2016 presentation on why Habitat makes the design decisions it does + where it fits into the larger problems the container ecosystem aims to solve.

George Miranda

July 12, 2016
Tweet

More Decks by George Miranda

Other Decks in Technology

Transcript

  1. 1

  2. Challenged assumptions In this talk... • What is Habitat? •

    How Habitat plugs into the larger ecosystem gmiranda23
  3. "[Biological computing is] also how Google, Twitter, and other Internet

    giants now think about building and running their massive online services. This isn’t software that runs on a single machine. Serving millions upon millions of people around the globe, it’s software that runs on thousands of machines spread across multiple computer data centers. [This software] runs this entire service like a biological system, as a vast collection of self-contained pieces that work in concert. It can readily spread those cells of code across all those machines, and when machines break—as they inevitably do—it can move code to new machines and keep the whole alive." - Wired Magazine
  4. Mesos • Apache Mesos: distributed systems kernel • Marathon: container

    management platform • Both are part of Mesosphere DC/OS • Marathon supports Mesos & Docker formats • Define in Marathon with resource definition JSON • Marathon schedules that across your cluster gmiranda23
  5. Mesos gmiranda23 { "id": "yourorigin/yourpackage", "cmd": "/bin/id -u hab &>/dev/null

    || /sbin/useradd hab; /bin/ chown -R hab:hab *; mount -t proc proc proc/; mount -t sysfs sys sys/;mount -o bind /dev dev/; /usr/sbin/chroot . ./init.sh start yourorigin/yourpackage", "cpus": 0.5, "disk": 0, "mem": 256, "instances": 1, "uris": [ "https://storage.googleapis.com/mesos-habitat/ yourorigin/yourpackage-0.0.1-20160611121519.tgz" ] }
  6. Mesos (future state) • hab-sup ports need to be opened

    for gossip • Marathon artifact store could be the URI • load applications via Marathon API • add .hart archive format to Marathon • etc gmiranda23
  7. Kubernetes • K8 is at the heart of GCE and

    Tectonic • K8 provides deployment, scaling, and mgmt of containers across a cluster of hosts • Habitat creates and configures those containers gmiranda23 $ hab pkg export docker yourorigin/yourpackage $ hab pkg export aci yourorigin/yourpackage
  8. Kubernetes • K8 pods are interdependent container groups • Describes

    resource & networking needs via YAML • k8 then schedules running pods • Single container pod support in Habitat docs gmiranda23
  9. Kubernetes (future state) • multi-container pod support • generate pod

    config via CLI • gossip ports available by default • etc gmiranda23
  10. Rancher • Container management and catalog • Supports Mesos, K8,

    Swarm • Supports habitat catalog templates http://rancher.com/using-habitat-to-create- rancher-catalog-templates/ gmiranda23
  11. Common ecosystem questions Does habitat replace containers? • No. It's

    habitat AND containers Does habitat negate container mgmt solutions? gmiranda23
  12. Common ecosystem questions Does habitat replace containers? • No. It's

    habitat AND containers Does habitat negate container mgmt solutions? • No. It's habitat AND mesos/k8/rancher/etc gmiranda23
  13. Common ecosystem questions Does habitat replace chef? • No. It's

    habitat AND chef Does habitat replace Jenkins? gmiranda23
  14. Common ecosystem questions Does habitat replace chef? • No. It's

    habitat AND chef Does habitat replace CI systems? gmiranda23
  15. Common ecosystem questions Does habitat replace chef? • No. It's

    habitat AND chef Does habitat replace CI systems? • No. It's habitat AND Chef Automate (or CI systems) gmiranda23
  16. Habitat Zone • Where • level 4 near room 404

    • What • place to discuss all things Habitat • enjoy some snacks! • Featuring • 1-2pm Wednesday • Habitat Internals - Fletcher Nichol • 2-3pm Wednesday • Building the Habitat Community - Nathen Harvey gmiranda23
  17. 77