{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/fabric8-zookeeper-docker/issues/4","labels_url":"https://api.github.com/repos/fabric8io/fabric8-zookeeper-docker/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/fabric8-zookeeper-docker/issues/4/comments","events_url":"https://api.github.com/repos/fabric8io/fabric8-zookeeper-docker/issues/4/events","html_url":"https://github.com/fabric8io/fabric8-zookeeper-docker/pull/4","id":70154067,"number":4,"title":"Rework to support scaling under Kubernetes/OpenShift","user":{"login":"mfojtik","id":44136,"avatar_url":"https://avatars.githubusercontent.com/u/44136?v=3","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-22T15:09:02Z","updated_at":"2015-04-28T14:57:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fabric8io/fabric8-zookeeper-docker/pulls/4","html_url":"https://github.com/fabric8io/fabric8-zookeeper-docker/pull/4","diff_url":"https://github.com/fabric8io/fabric8-zookeeper-docker/pull/4.diff","patch_url":"https://github.com/fabric8io/fabric8-zookeeper-docker/pull/4.patch"},"body":"Hi guys,\r\n\r\nThis is a partial rework of this image to have ZooKeeper running on OpenShift/Kubernetes in a way where you can scale/scale down it using replicationController.\r\n\r\nTo try this you can:\r\n\r\n```\r\n$ docker build -t zookeeper .\r\n$ osc create -f kubernetes/zookeeper_config.json\r\n```\r\n\r\nAssuming that you have OpenShift running you should see following:\r\n\r\n```\r\n$ osc get pods\r\nPOD               IP            CONTAINER(S)   IMAGE(S)    HOST                           LABELS                  STATUS    CREATED\r\nzookeeper-577sj   172.17.0.40   server         zookeeper   openshiftdev.local/127.0.0.1   name=zookeeper-server   Running   9 seconds\r\nzookeeper-a2h8z   172.17.0.39   server         zookeeper   openshiftdev.local/127.0.0.1   name=zookeeper-server   Running   9 seconds\r\nzookeeper-dd2by   172.17.0.38   server         zookeeper   openshiftdev.local/127.0.0.1   name=zookeeper-server   Running   9 seconds\r\n```\r\n\r\nTo scale it up, you can increase the number of 'replicas':\r\n\r\n```\r\n$ osc update rc zookeeper --patch='{ \"apiVersion\": \"v1beta1\", \"desiredState\": { \"replicas\": 4 }}\r\n```\r\n\r\nFYI, this is a work in progress stuff, README is missing and there are couple of failover scenarios/persistent storage scenarios that are not covered (yet).\r\n\r\nPTAL"},"comment":{"url":"https://api.github.com/repos/fabric8io/fabric8-zookeeper-docker/issues/comments/97093951","html_url":"https://github.com/fabric8io/fabric8-zookeeper-docker/pull/4#issuecomment-97093951","issue_url":"https://api.github.com/repos/fabric8io/fabric8-zookeeper-docker/issues/4","id":97093951,"user":{"login":"mfojtik","id":44136,"avatar_url":"https://avatars.githubusercontent.com/u/44136?v=3","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T14:57:37Z","updated_at":"2015-04-28T14:57:37Z","body":"@iocanel @danmcp I reworked this PR to have static list of 3 zookeeper servers wired together with 3 services. This won't scale up or down, but work as a static unit. PTAL."}}