Skip to content

Allow users to specify a suffix for --advertise-host argument #888

Open
@ADustyOldMuffin

Description

@ADustyOldMuffin

As found here the --advertise-host argument is built based on the pod name, and the namespace. In our instance our nodes exist in different Kubernetes clusters, but have the same podnames and namespace. What makes our nodes uniquely identifiable is their FQDN (what cluster they're in).

I know it's not supported but would it make sense to have an option to specify a suffix for these names?

So the code would look something like

suffix := ""
if b.Spec().AdvertiseSuffix != nil {
    suffix = fmt.Sprintf(".%s", *b.Spec().AdvertiseSuffix)
}

...
fmt.Sprintf("--advertise-host=$(POD_NAME).%s.%s",
    b.Cluster.DiscoveryServiceName(), b.Cluster.Namespace(), suffix)

Or something of the sort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions