operator icon indicating copy to clipboard operation
operator copied to clipboard

When Create VMAlertmanager,makeStatefulSetSpec func joint one more "."

Open linkbug opened this issue 4 years ago • 3 comments

like this : Failed to resolve ### vmalertmanager-example-alertmanager-1.vmalertmanager-example-alertmanager.opcs.svc.cluster.local.****:9094: lookup vmalertmanager-example-alertmanager-1.vmalertmanager-example-alertmanager.opcs.svc.cluster.local. on 192.115.0.14:53: no such host code is : clusterPeerDomain = fmt.Sprintf("%s.%s.svc.%s.", cr.PrefixedName(), cr.Namespace, c.ClusterDomainName)

linkbug avatar Jun 24 '21 02:06 linkbug

Thanks for reporting!

f41gh7 avatar Jun 25 '21 00:06 f41gh7

It shouldn't be an issue, its valid dns name. I suppose, that your kubernetes has different dns-domain.

You can check it but executing following command inside any pod:

cat /etc/resolv.conf
search default.svc.cluster.local svc.cluster.local cluster.local
nameserver 10.96.0.10
options ndots:5

cluster.local is default dns domain for cluster. If you have other domain, change it with env variable added to the operator deployment:

env:
- name: VM_CLUSTERDOMAINNAME
  value: your-cluster-dns-domain

f41gh7 avatar Jun 25 '21 00:06 f41gh7

use defalut ClusterDomainName error log is "Failed to resolve ### vmalertmanager-example-alertmanager-1.vmalertmanager-example-alertmanager.opcs.svc.cluster.local.****:9094: lookup vmalertmanager-example-alertmanager-1.vmalertmanager-example-alertmanager.opcs.svc.cluster.local. "

"vmalertmanager-example-alertmanager-1.vmalertmanager-example-alertmanager.opcs.svc.cluster.local." end with "."

linkbug avatar Jul 02 '21 08:07 linkbug

Hi @linkbug. Is that question still relevant to you?

Amper avatar Jul 27 '23 14:07 Amper

Closed due to lack of activity

Amper avatar Aug 02 '23 15:08 Amper