NOTES: I found it will be more convenience to use OpenVPN/easy-rsa to create self-sign certificates directly
adjust your details in top of code self-sign.py
pip install -r requirements.txt
python self-sign.py
you will get two files
- cert.crt
- private.key
run below command to add the tls secret in kubernetes cluster
./kube_secret.sh www.example.com