You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
I wonder if we could use the utility added by #894 to easily address this problem? Another alternative would be to use hostname -f in favor of manually constructing the --advertise-host flag.
@ADustyOldMuffin would you mind sharing the (potentially redacted) output of the following commands on the cluster(s) that you're running?
# From a cockroachDB Pod
hostname -f
# From anywhere# If running on stock CRDB containers, you may need to run: microdnf install bind-utils
nslookup kubernetes.default.svc
Hey folks, following up on this. Would your team be open to a PR that introduces a way to customize how pods self-advertise? We're in an environment where the DNS name for each crdb pod is created externally (externalDNS), and the pod needs to advertise that name instead.
From a technical standpoint I think this is fine. My concern was in the rolling restart logic that the operator was checking logical CRDB nodes across all regions vs just the stateful set that it owns in its own cluster.
e.g. if I have 3 regions
k8s-1 with nodes n1,n2,n3
k8s-2 with nodes n4,n5,n6
and
k8s-3 with nodes n7,n8,n9
Then making sure the operator in k8s-1 does not hang trying to update n4 or something.
The logic seems to be focused only on stateful sets so this likely fine. Orchestration across the clusters will need to be handled by something outside the operator though.
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
Or something of the sort.
The text was updated successfully, but these errors were encountered: