ETCD 客户端从 k8s api 服务器连接到 etcd 服务器的问题

ETCD 客户端从 k8s api 服务器连接到 etcd 服务器的问题

我们预计 etcd 集群会出现以下问题。我们使用以下配置生成了证书:

{
    "CN": "client",
    "hosts": [""],
    "key": {
        "algo": "ecdsa",
        "size": 256
    },
    "names": [
        {
            "C": "US",
            "L": "CA",
            "ST": "San Francisco"
        }
    ]
}

但收到此错误:

error "tls: \"10.105.113.108\" does not match any of DNSNames [\"\"] (lookup : no such host)", ServerName "etcd-kube-cluster-3.test.com", IPAddresses [], DNSNames [""])

但查找正常:

;; ANSWER SECTION:
108.113.105.10.in-addr.arpa. 54 IN  PTR ip-10-105-113-108.ec2.internal

如何解决这个问题?

相关内容