Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tiup使用yaml配置文件部署tikv和pd无法启用https
[TiDB Usage Environment] Test
[TiDB Version] 6.5.0
[Reproduction Path]
[Encountered Problem: Problem Phenomenon and Impact]
Part of the yaml configuration file:
pd_servers:
- host: 2.2.2.2
data_dir: “/cache/pd-data”
config:
schedule.max-merge-region-size: 20
schedule.max-merge-region-keys: 200000
client-urls: “https://2.2.2.2:2379”
advertise-client-urls: “https://2.2.2.2:2379”
peer-urls: “https://2.2.2.2:2380”
advertise-peer-urls: “https://2.2.2.2:2380”
log.level: “debug”
security:
cert-allowed-cn: [“tikv.cn”]
cacert-path: “/usr/local/tikv/etc/root.crt”
cert-path: “/usr/local/tikv/etc/tikv.crt”
key-path: “/usr/local/tikv/etc/tikv.key”
tikv_servers:
- host: 1.1.1.1
port: 20160
status_port: 20180
deploy_dir: “/usr/local/tikv/tikv-20160”
log_dir: “/usr/local/tikv/tikv-20160/log”
data_dir: “/cache/tikv-data/tikv-20160”
config:
security:
cert-allowed-cn: [“tikv.cn”]
ca-path: “/usr/local/tikv/etc/root.crt”
cert-path: “/usr/local/tikv/etc/tikv.crt”
key-path: “/usr/local/tikv/etc/tikv.key”
Deployment command using tiup: echo Yes|tiup cluster deploy test_cluster v6.5.0 /etc/test.yaml --user tikv -i /tmp/key
PD cannot use https when starting as shown in the picture: still http
PD error log screenshot:
Experts, please help check if there is any problem with the configuration and why https cannot be enabled.