docs icon indicating copy to clipboard operation
docs copied to clipboard

Support k8s address resolution

Open mcdeea opened this issue 2 years ago • 3 comments

File: /master/tidb-lightning/monitor-tidb-lightning.md

For the scrape_configs mentioned in the doc, scrape_configs:

  • job_name: 'tidb-lightning' static_configs:
    • targets: ['192.168.20.10:8289'] currently I don’t have a static ip for the pod since it’s running in the k8s, can I use k8s service name as the target? Ans: It is fine to use k8s address. Just make sure DNS will translate the k8s address to the correct ip address.

mcdeea avatar May 06 '22 03:05 mcdeea

@sunzhaoyang Could you please take a look? Thanks~

TomShawn avatar May 07 '22 03:05 TomShawn

/cc @Ehco1996 PTAL

sunzhaoyang avatar May 27 '22 03:05 sunzhaoyang

@lrvgz yes you can use a k8s svc as an endpoint but make sure your svc config is correct

Ehco1996 avatar May 27 '22 03:05 Ehco1996

Closing this issue as it is resolved. If you have any other questions regarding the usage of TiDB and its related tools, feel free to start a discussion on the community forum (English or Chinese).

ran-huang avatar Feb 10 '23 08:02 ran-huang