This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
[incubartor/etcd] unable to reach etcd from another namespace #7899
Labels
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Is this a request for help?:
No
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Version of Helm and Kubernetes:
helm version
Client: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}
kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.5", GitCommit:"cce11c6a185279d037023e02ac5249e14daa2
2bf", GitTreeState:"clean", BuildDate:"2017-12-07T16:16:03Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"windows/amd6
4"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0
eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd6
4"}
Which chart:
incubator/etcd
What happened:
Installed etcd into a namespace called "etcd".
Installed vault into a namespace called "vault".
Attempted to get vault status with "vault status".
Got:
Error checking seal status: Error making API request.
URL: GET http://127.0.0.1:8200/v1/sys/seal-status
Code: 500. Errors:
; error Move templates from kubernetes/deployment-manager to the registry #1: dial tcp: lookup etcd-0.etcd on 10.96.0.10:53: no such host
; error Teams for this repository don't have access to the repository #2: dial tcp: lookup etcd-1.etcd on 10.96.0.10:53: no such host
What you expected to happen:
Expected result from vault:
Error checking seal status: Error making API request.
URL: GET http://127.0.0.1:8200/v1/sys/seal-status
Code: 400. Errors:
How to reproduce it (as minimally and precisely as possible):
kubectl create namespace etcd
kubectl create namespace vault
helm install incubator/etcd --name etcd --namespace etcd
helm install incubator/vault --name vault --namespace vault --set vault.dev=false --set vault.config.storage.etcd.address="http://etcd.etcd:2379",vault.config.storage.etcd.path="vault"
Anything else we need to know:
Notice the error message from vault does not include a fully qualified domain name (FQDN). The FQDN should be etcd-0.etcd.etcd.svc.cluster.local. Just adding the namespace (etcd-0.etcd.etcd) is sufficient. I've verified that it's possible to fix this by updating the statefulset to include the namespace when joining members.
The text was updated successfully, but these errors were encountered: