869 B
869 B
Hack Scripts
This documentation describes usage of common scripts under hack/ dir.
gen-tls-certs.sh
This script generates cfssl configs and certs according to Enable TLS for the MySQL Client and Enable TLS between TiDB Components.
The generated artifacts are under output/tls, which is ignored by git.
There are several configurable variables at the top of the script, in which the most commonly changed ones are TIDB_CLUSTER and NAMESPACE.
Internally, this script will generate CA, certs for tidb cluster components mTLS, and certs for tidb server/client mTLS. Then it will create several secret objects using kubectl, so that TidbCluster components can use them afterwards.