[
  {
    "id": "etcd",
    "image_id": "$image_id[etcd]",
    "args": [
      "-data-dir={{ .Volume \"/data\" }}",
      "-addr={{ .ExternalIP }}:{{ .TCPPort 0 }}",
      "-bind-addr=0.0.0.0:{{ .TCPPort 0 }}",
      "-peer-addr={{ .ExternalIP }}:{{ .TCPPort 1 }}",
      "-peer-bind-addr=0.0.0.0:{{ .TCPPort 1 }}",
      "-name={{ .Env.HOSTNAME }}",
      "{{ if .Env.ETCD_PEERS }}-peers={{ .Env.ETCD_PEERS }}{{ end }}",
      "{{ if .Env.ETCD_DISCOVERY }}-discovery={{ .Env.ETCD_DISCOVERY }}{{ end }}"
    ],
    "tcp_ports": ["4001", "7001"]
  },
  {
    "id": "discoverd",
    "image_id": "$image_id[discoverd]",
    "args": ["-bind=:{{ .TCPPort 0 }}", "-etcd=http://{{ .Services.etcd.InternalIP }}:{{ index .Services.etcd.TCPPorts 0 }}"],
    "tcp_ports": ["1111"]
  }
]

[
  {
    "id": "etcd",
    "image_id": "$image_id[etcd]",
    "args": [
      "-http-read-timeout=525600",
      "-http-write-timeout=525600",
      "-data-dir={{ .Volume \"/data\" }}",
      "-addr={{ .ExternalIP }}:{{ .TCPPort 0 }}",
      "-bind-addr=0.0.0.0:{{ .TCPPort 0 }}",
      "-peer-addr={{ .ExternalIP }}:{{ .TCPPort 1 }}",
      "-peer-bind-addr=0.0.0.0:{{ .TCPPort 1 }}",
      "-name={{ .Env.HOSTNAME }}",
      "{{ if .Env.ETCD_PEERS }}-peers={{ .Env.ETCD_PEERS }}{{ end }}",
      "{{ if .Env.ETCD_DISCOVERY }}-discovery={{ .Env.ETCD_DISCOVERY }}{{ end }}"
    ],
    "tcp_ports": ["4001", "7001"]
  },
  {
    "id": "discoverd",
    "image_id": "$image_id[discoverd]",
    "args": ["-bind=:{{ .TCPPort 0 }}", "-etcd=http://{{ .Services.etcd.InternalIP }}:{{ index .Services.etcd.TCPPorts 0 }}"],
    "tcp_ports": ["1111"]
  }
]

Add long etcd read/write timeouts to manifest template
host: Add long etcd read/write timeouts to manifest template

This is a temporary partial workaround for #48.

[ci skip]

Signed-off-by: Jonathan Rudenberg <3692bfa45759a67d83aedf0045f6cb635a966abf@titanous.com>