Add custom domains to your ML endpoints with HTTPS
Tensorkube enables you to attach custom domains to your deployments and secure them with HTTPS using AWS Certificate Manager (ACM). Follow the steps below to configure your custom domain with TLS.
This will set up a wildcard certificate for *.sub.example.org. You will receive a set of CNAME records that you need to add to your domain name service to validate your domain. This enables you to
use all the subdomains under *.sub.example.org for your deployments. service.sub.example.org will be a valid example for your deployment.
Once you run the above command, you will see a table of DNS records that need to be configured in your DNS provider (e.g., Cloudflare). Here’s an example of what the output might look like:
Copy
Ask AI
Required DNS Records┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓┃ Type ┃ Name ┃ Value ┃┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩│ CNAME │ _82cee38bc876e83ad58ac438.sub.example.org │ _55d01e7ad23302sssss70274c2ae1d1b.ssyfvmchrl.acm-validations.aws ││ CNAME │ *.sub.example.org │ aade77bced52bsssss951b8a8b640a8f-1513ssw419.us-east-1.elb.amazonaws.com │└────┴───────────────────────────────┴─────────────────────────────────────────────┘
Make sure to add these DNS records to your domain registrar. If you’re using a service like Cloudflare, ensure that the proxy option is turned off to allow proper DNS resolution.
By specifying —domain-name, you instruct Tensorkube to use the custom domain for your deployment. This also replaces the default subpath URL access with the specified subdomain, providing a cleaner, more professional endpoint secured with HTTPS.
Make sure your DNS changes are propagated. This can take some time, depending on your DNS provider.
Cloudflare users: Ensure the DNS records use “DNS Only” mode instead of “Proxied” to prevent any conflicts during verification.
By following these steps, you’ll successfully set up a custom domain with HTTPS for your Tensorkube deployments, enhancing security and branding for your applications.