tiup: should enhance the support for deploy with hostname instead of ip
Bug Report
Please answer these questions before submitting your issue. Thanks!
- What did you do?
Deploy one cluster with tls enabled between all components in k8s dockers, part of topo list as following, tikv_servers:
- host: tikv1-peer port: 20160 status_port: 20180 config: server.labels: dc: dc1 zone: zone1 host: host1
-
What did you expect to see? Every things works fine.
-
What did you see instead?
Found the tikv ips is not added to the certificate.
MySQL [(none)]> show config where type='tikv'; Empty set, 3 warnings (0.09 sec)
MySQL [(none)]> show warnings; +---------+------+-------------------------------------------------------------------------------------------------------+ | Level | Code | Message | +---------+------+-------------------------------------------------------------------------------------------------------+ | Warning | 1105 | Get "https://10.233.80.87:20180/config": x509: certificate is valid for 127.0.0.1, not 10.233.80.87 | | Warning | 1105 | Get "https://10.233.98.159:20180/config": x509: certificate is valid for 127.0.0.1, not 10.233.98.159 | | Warning | 1105 | Get "https://10.233.113.26:20180/config": x509: certificate is valid for 127.0.0.1, not 10.233.113.26 | +---------+------+-------------------------------------------------------------------------------------------------------+ 3 rows in set (0.00 sec)
- What version of TiUP are you using (
tiup --version)?
sh-4.2# tiup --version 1.9.1 tiup Go Version: go1.17.7 Git Ref: v1.9.1 GitHash: 8c9d75df55c48e3cd645c2eea1fb0c51cfcd92d0

/assign @AstroProfundis