Skip to content

Multizone rack awareness - #41

Merged
solsson merged 6 commits into
masterfrom
multizone-rack-awareness
Aug 5, 2017
Merged

solsson merged 6 commits into
masterfrom
multizone-rack-awareness

Conversation

@solsson
solsson changed the base branch from master to kafka-011 July 19, 2017 05:08
@solsson

solsson commented Jul 19, 2017

Copy link
Copy Markdown
Contributor Author

I think it's time to introduce an init container (or "sidecar") that replaces the ever growing command: in the kafka StatefulSet yaml. Node label lookup won't be as easy as --override broker.id=${HOSTNAME##*-}.

@solsson

solsson commented Aug 2, 2017

Copy link
Copy Markdown
Contributor Author

Explains why node name but no other node attributes are available via downward API, and thus why we need API calls: kubernetes/kubernetes#25957

@solsson
solsson force-pushed the multizone-rack-awareness branch from e919456 to 8ee2ef6 Compare August 2, 2017 10:56
@solsson

solsson commented Aug 3, 2017

Copy link
Copy Markdown
Contributor Author

I picked the zone lookup kubectl command from #56 but avoided the RBAC. The RBAC part needs more scrutiny so I'll add it as an addon branch.

@solsson

solsson commented Aug 3, 2017

Copy link
Copy Markdown
Contributor Author

Verified on GKE. Some error cases verified on minikube (which naturally lacks the label).

https://github.com/wurstmeister/kafka-docker#broker-rack has a strategy for AWS but I'm assuming because of https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#interlude-built-in-node-labels that the label is set there too.

@solsson
solsson force-pushed the multizone-rack-awareness branch from 16236cd to ff972b9 Compare August 5, 2017 05:04
@solsson

solsson commented Aug 5, 2017

Copy link
Copy Markdown
Contributor Author

Got RBAC policy from 13520a6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant