{"action":"created","issue":{"url":"https://api.github.com/repos/kontena/kontena/issues/233","labels_url":"https://api.github.com/repos/kontena/kontena/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/kontena/kontena/issues/233/comments","events_url":"https://api.github.com/repos/kontena/kontena/issues/233/events","html_url":"https://github.com/kontena/kontena/pull/233","id":112458147,"number":233,"title":"Generate loadbalancer service on kontena app init command","user":{"login":"nevalla","id":455844,"avatar_url":"https://avatars.githubusercontent.com/u/455844?v=3","gravatar_id":"","url":"https://api.github.com/users/nevalla","html_url":"https://github.com/nevalla","followers_url":"https://api.github.com/users/nevalla/followers","following_url":"https://api.github.com/users/nevalla/following{/other_user}","gists_url":"https://api.github.com/users/nevalla/gists{/gist_id}","starred_url":"https://api.github.com/users/nevalla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevalla/subscriptions","organizations_url":"https://api.github.com/users/nevalla/orgs","repos_url":"https://api.github.com/users/nevalla/repos","events_url":"https://api.github.com/users/nevalla/events{/privacy}","received_events_url":"https://api.github.com/users/nevalla/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kontena/kontena/labels/cli","name":"cli","color":"eb6420"},{"url":"https://api.github.com/repos/kontena/kontena/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T20:53:40Z","updated_at":"2015-10-21T05:30:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kontena/kontena/pulls/233","html_url":"https://github.com/kontena/kontena/pull/233","diff_url":"https://github.com/kontena/kontena/pull/233.diff","patch_url":"https://github.com/kontena/kontena/pull/233.patch"},"body":"This PR improves `kontena app init` command by generating loadbalancer service automatically if web process exists. Also Heroku addon services will be marked as stateful by default. \r\n\r\nResulting `kontena.yml` will be something like this:\r\n\r\n```\r\n---\r\nloadbalancer:\r\n  image: kontena/lb:latest\r\n  ports:\r\n  - 80:80\r\nweb:\r\n  extends:\r\n    file: docker-compose.yml\r\n    service: web\r\n  image: registry.kontena.local/sinatra-example:latest\r\n  links:\r\n  - openredis:openredis\r\n  - loadbalancer\r\n  environment:\r\n  - KONTENA_LB_MODE=http\r\n  - KONTENA_LB_BALANCE=roundrobin\r\n  - KONTENA_LB_INTERNAL_PORT=5000\r\n  - REDIS_URL=redis://sinatra-example-openredis:6379\r\nopenredis:\r\n  extends:\r\n    file: docker-compose.yml\r\n    service: openredis\r\n  stateful: true\r\n```"},"comment":{"url":"https://api.github.com/repos/kontena/kontena/issues/comments/149787946","html_url":"https://github.com/kontena/kontena/pull/233#issuecomment-149787946","issue_url":"https://api.github.com/repos/kontena/kontena/issues/233","id":149787946,"user":{"login":"jakolehm","id":1446224,"avatar_url":"https://avatars.githubusercontent.com/u/1446224?v=3","gravatar_id":"","url":"https://api.github.com/users/jakolehm","html_url":"https://github.com/jakolehm","followers_url":"https://api.github.com/users/jakolehm/followers","following_url":"https://api.github.com/users/jakolehm/following{/other_user}","gists_url":"https://api.github.com/users/jakolehm/gists{/gist_id}","starred_url":"https://api.github.com/users/jakolehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakolehm/subscriptions","organizations_url":"https://api.github.com/users/jakolehm/orgs","repos_url":"https://api.github.com/users/jakolehm/repos","events_url":"https://api.github.com/users/jakolehm/events{/privacy}","received_events_url":"https://api.github.com/users/jakolehm/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T05:30:57Z","updated_at":"2015-10-21T05:30:57Z","body":"What happens if user deploys another app to the same grid? Does it throw error because load balancer exists or something else?"}}