Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Allow all headless services, not just those backed by Statefulsets with subdomains #5250

Conversation

keithmattix
Copy link
Contributor

@keithmattix keithmattix commented Nov 11, 2022

The existing logic requires hostname to be set before a MeshService is created from a headless service's endpoint. However, hostname is only populated on the endpoint when that endpoint is generated from a StatefulSet. This PR creates a MeshService for every service so that it's still resolvable via DNS (instead of kube-proxy like ClusterIP services).

Creating a MeshService for every headless service creates an issue if there is indeed a subdomain statefulset behind the headless service. Therefore, we only created a separate MeshService if the headless service it came from doesn't have a hostName in at least one of its endpoints

Copy link
Contributor

@jsturtevant jsturtevant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@keithmattix keithmattix merged commit 7953a57 into openservicemesh:main Nov 15, 2022
@keithmattix keithmattix deleted the add-headless-service-in-addition-to-endpoint-hostnames branch November 15, 2022 23:43
keithmattix added a commit to keithmattix/osm that referenced this pull request Dec 8, 2022
…th subdomains (openservicemesh#5250)

* Allow all headless services, not just those backed by Statefulsets with subdomains

Signed-off-by: Keith Mattix II <[email protected]>
keithmattix added a commit to keithmattix/osm that referenced this pull request Dec 8, 2022
…th subdomains (openservicemesh#5250)

* Allow all headless services, not just those backed by Statefulsets with subdomains

Signed-off-by: Keith Mattix II <[email protected]>
keithmattix added a commit that referenced this pull request Dec 14, 2022
(backport/v1.2.3) Allow all headless services, not just those backed by Statefulsets with subdomains (#5250)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants