Sha256: 7025a2452f1945d707d8afe94de5f23669c57479883309f33e64b087ed609747

Contents?: true

Size: 1019 Bytes

Versions: 23

Compression:

Stored size: 1019 Bytes

Contents

local fileProvider = std.native('provide.file');
local provide(name) = fileProvider(std.toString({ path: 'hello.env' }), name);

{
  scheduler: {
    type: 'ecs',
    region: 'ap-northeast-1',
    cluster: 'eagletmt',
    desired_count: 2,
    role: 'ecsServiceRole',
    // dynamic_port_mapping cannot be enabled with elb
    elb: {
      listeners: [
        {
          load_balancer_port: 80,
          protocol: 'HTTP',
        },
      ],
      subnets: ['subnet-XXXXXXXX', 'subnet-YYYYYYYY'],
      security_groups: ['sg-ZZZZZZZZ'],
    },
  },
  app: {
    image: 'ryotarai/hello-sinatra',
    memory: 128,
    cpu: 256,
    env: {
      PORT: '3000',
      MESSAGE: std.format('%s-san', provide('username')),
    },
  },
  sidecars: {
    front: {
      image_tag: 'hako-nginx',
      memory: 32,
      cpu: 32,
    },
  },
  scripts: [
    (import 'front.libsonnet') + {
      backend_port: 3000,
      locations: {
        '/': {
          allow_only_from: ['10.0.0.0/24'],
        },
      },
    },
  ],
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
hako-2.17.0 examples/hello-lb.jsonnet
hako-2.16.0 examples/hello-lb.jsonnet
hako-2.15.1 examples/hello-lb.jsonnet
hako-2.15.0 examples/hello-lb.jsonnet
hako-2.14.0 examples/hello-lb.jsonnet
hako-2.13.0 examples/hello-lb.jsonnet
hako-2.12.0 examples/hello-lb.jsonnet
hako-2.11.1 examples/hello-lb.jsonnet
hako-2.11.0 examples/hello-lb.jsonnet
hako-2.10.0 examples/hello-lb.jsonnet
hako-2.9.2 examples/hello-lb.jsonnet
hako-2.9.1 examples/hello-lb.jsonnet
hako-2.9.0 examples/hello-lb.jsonnet
hako-2.8.0 examples/hello-lb.jsonnet
hako-2.7.0 examples/hello-lb.jsonnet
hako-2.6.2 examples/hello-lb.jsonnet
hako-2.6.1 examples/hello-lb.jsonnet
hako-2.6.0 examples/hello-lb.jsonnet
hako-2.5.1 examples/hello-lb.jsonnet
hako-2.5.0 examples/hello-lb.jsonnet