{"action":"created","issue":{"url":"https://api.github.com/repos/sanderploegsma/redis-cluster/issues/1","repository_url":"https://api.github.com/repos/sanderploegsma/redis-cluster","labels_url":"https://api.github.com/repos/sanderploegsma/redis-cluster/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/sanderploegsma/redis-cluster/issues/1/comments","events_url":"https://api.github.com/repos/sanderploegsma/redis-cluster/issues/1/events","html_url":"https://github.com/sanderploegsma/redis-cluster/issues/1","id":245342932,"number":1,"title":"Auto-start of ","user":{"login":"deitch","id":282526,"avatar_url":"https://avatars3.githubusercontent.com/u/282526?v=4","gravatar_id":"","url":"https://api.github.com/users/deitch","html_url":"https://github.com/deitch","followers_url":"https://api.github.com/users/deitch/followers","following_url":"https://api.github.com/users/deitch/following{/other_user}","gists_url":"https://api.github.com/users/deitch/gists{/gist_id}","starred_url":"https://api.github.com/users/deitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deitch/subscriptions","organizations_url":"https://api.github.com/users/deitch/orgs","repos_url":"https://api.github.com/users/deitch/repos","events_url":"https://api.github.com/users/deitch/events{/privacy}","received_events_url":"https://api.github.com/users/deitch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-07-25T09:39:20Z","updated_at":"2018-04-18T09:29:27Z","closed_at":null,"author_association":"NONE","body":"This is a nice clean example of redis cluster running in k8s. The one challenge is the cluster initialization and adding/removing nodes.\r\n\r\nIs there any clean self-managing (i.e. autonomous) way to do it? Since you are using a `StatefulSet`, you _know_ the names of the (initial) pods will be `redis-cluster-0`, `redis-cluster-1`, etc. You probably even could do 2 `StatefulSet`s if you wanted guarantees as to which pods are master vs slave.\r\n\r\nIs there no way to have `redis-cluster-0` automatically come up and initialize a cluster with `cluster-1` and `cluster-2`, or for that matter, just itself, and have `cluster-1` and `cluster-2` self-register to `cluster-0`? Same for expansion.\r\n\r\nIn a kube environment, having to do `kubectl exec ...` is not optimal (or recommended).\r\n\r\nI am kind of surprised that redis doesn't have any option in the config file for saying, \"here are your initial cluster peers\".\r\n\r\nYou kind of wish an InitContainer could do this, but they complete *before* the pod containers run, so that will not help. Perhaps some extension of the image, so it spins up a child process? Or a sidecar container (although that would have a one-off and shouldn't be restarted, whereas restart policies are pod-level, not container-level)? Or a `post-start` lifecycle hook?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sanderploegsma/redis-cluster/issues/comments/382325036","html_url":"https://github.com/sanderploegsma/redis-cluster/issues/1#issuecomment-382325036","issue_url":"https://api.github.com/repos/sanderploegsma/redis-cluster/issues/1","id":382325036,"user":{"login":"KeithTt","id":15189954,"avatar_url":"https://avatars0.githubusercontent.com/u/15189954?v=4","gravatar_id":"","url":"https://api.github.com/users/KeithTt","html_url":"https://github.com/KeithTt","followers_url":"https://api.github.com/users/KeithTt/followers","following_url":"https://api.github.com/users/KeithTt/following{/other_user}","gists_url":"https://api.github.com/users/KeithTt/gists{/gist_id}","starred_url":"https://api.github.com/users/KeithTt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeithTt/subscriptions","organizations_url":"https://api.github.com/users/KeithTt/orgs","repos_url":"https://api.github.com/users/KeithTt/repos","events_url":"https://api.github.com/users/KeithTt/events{/privacy}","received_events_url":"https://api.github.com/users/KeithTt/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T09:29:27Z","updated_at":"2018-04-18T09:29:27Z","author_association":"NONE","body":"@sanderploegsma Does this project support k8s 1.8+?"}}
{"actor":{"display_login":"KeithTt"}}