Setting up TLS cert

To insert your own certificate to match your domain to allow successful https traffic to your utopia instance, you can follow these steps:

  1. Get a certificate and key which is linked to your domain names. Depending on your service you may need to list all the endpoints for utopia individually. It is recommended to get a wildcard cert here for your subdomain, this will allow you to use the ingress for other domain names at a later stage if required.

  2. Log into your cluster using kubectl

  3. navigate in your terminal to where you have the cert and key saved in individual files

  4. you can run this command to build the tls cert in the kube cluster

kubectl create secret tls utopia-utopia-tls --key private-key.txt --cert ca-cert.txt

Or this if you have a specific namespace you have used for utopia

kubectl create secret tls utopia-utopia-tls --key private-key.txt --cert ca-cert.txt -n default

This will create your cert and if you use the name utopia-utopia-tls it will automatically link itself to the ingress

You should have no more certificate hassles.

As always please get in touch with us if you have any issues.

Last updated