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

Hashistack : orchestrer des applications Cloud ...

Hashistack : orchestrer des applications Cloud Native avec simplicité

Lorsqu'on parle d'orchestration de conteneurs, d'exécution d'applications Cloud Native, tout le monde se tourne vers kubernetes. Et pourtant, d'autres solutions existent. L'une d'elle est particulièrement efficace et se base sur une suite d'outils libres développés par Hashicorp : Consul et Nomad en sont les briques principales.

Voyons ensemble et en démos comment mettre en oeuvre une telle stack et pourquoi pas vous faire changer d'avis sur l'orchestration de vos applications.

Yves Brissaud

January 24, 2019
Tweet

More Decks by Yves Brissaud

Other Decks in Technology

Transcript

  1. Yves Brissaud  @_crev_  eunomie  [email protected] Tech Lead

    Build Infrastructures and Deploy Cloud Native Applications Seamlessly | Automatically | Instantly  @sqscale  squarescale.com
  2. job "hello" { type = "service" datacenters = ["dc1"] group

    "world" { count = 3 task "hello-api" { driver = "docker" config { image = "hashicorp/http-echo" args = ["-text=Hello!"] port_map {
  3. job "run-hook" { datacenters = ["dc1"] type = "batch" periodic

    { cron = "@hourly" prohibit_overlap = true } group "run-hook" { count = 1 task "curl" { driver = "exec"
  4. job "notify-event" { type = "batch" parameterized { payload =

    "required" meta_required = ["email"] } group "notify" { task "notify" { driver = "docker" dispatch_payload { file = "config.json"
  5. # dig srv web.service.consul ;; ANSWER SECTION: web.service.consul. 0 IN

    SRV 1 1 3000 2310.addr.dc1.consul. web.service.consul. 0 IN SRV 1 1 3000 2600.addr.dc1.consul. web.service.consul. 0 IN SRV 1 1 3000 2010.addr.dc1.consul. ;; ADDITIONAL SECTION: 2310.addr.dc1.consul. 0 IN A 10.2.49.9 ip-10-0-6-93.node.dc1.consul. 0 IN TXT "cluster=app" ip-10-0-6-93.node.dc1.consul. 0 IN TXT "group=worker" 2600.addr.dc1.consul. 0 IN A 10.2.96.3 ip-10-0-22-143.node.dc1.consul. 0 IN TXT "group=worker" ip-10-0-22-143.node.dc1.consul. 0 IN TXT "consul-network-se
  6. { "builders": [{ "type": "amazon-ebs", "region": "eu-west-1", "instance_type": "t3.small", "source_ami_filter":

    { "filters": { "virtualization-type": "hvm", "name": "CoreOS-stable-*", "root-device-type": "ebs" }, "owners": ["595879546273"], "most_recent": true