Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dns lookup by pod name for all pods #18

Merged
merged 2 commits into from
May 3, 2021

Conversation

rchernobelskiy
Copy link
Contributor

@rchernobelskiy rchernobelskiy commented May 3, 2021

Some background for this change:
The purpose of the ServiceName field of a StatefulSet is to specify the name of the service under which DNS subdomain records are created for each pod: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#stable-network-id

The operator makes two services for dse pods, one with PublishNotReadyAddresses set to true and one with it set to false.

Setting the ServiceName to the service which has PublishNotReadyAddresses set to true allows dns lookups for pods that are not ready yet.

This can be useful in a number of scenarios, one of which is having the pods on an overlay network with stable IPs, where pod to pod communication happens via dns names: https://www.datastax.com/blog/2021/05/how-connect-stateful-workloads-across-kubernetes-clusters

@burmanm
Copy link
Contributor

burmanm commented May 3, 2021

This type of change requires regenerating the client / sdk. So mage operator:sdkGenerate and mage operator:generateClient.

@rchernobelskiy
Copy link
Contributor Author

@burmanm are you sure? Those commands produced no changes when ran

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.

4 participants