Skip to content

It is assumed that configured cluster domain is always "cluster.local" #402

@adrianlzt

Description

@adrianlzt

What happened?

Under some circumstances, Pomerium could configure the destination endpoint with the format BACKEND.NAMESPACE.svc.cluster.local.

This is assuming the cluster domain is always cluster.local, that could be not the case. In Kubspray, for example, you can change that value with cluster_name.

What did you expect to happen?

cluster.local should be a parametrizable value, or, maybe, it could be removed.

If it is removed, BACKEND.NAMESPACE.svc will be tried to be resolved, appending the values in the search domains of the /etc/resolv.conf. But I am not sure if all k8s installs set the needed search values (at least it will need search DOMAIN, like search cluster.local).

The official doc shows an example of the possible /etc/resolv.conf configuration, but in the spec there is no reference about if some search values should be always be present.

I have checked in a Kubespray install and GKE cluster they are present.

Additional context

Related with PR #401

Metadata

Metadata

Assignees

Labels

NeedsMoreDataWaiting for additional user feedback or case studies

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions