How to use multiple domains using Knative?

How do you map multiple domains to your service using Knative?

Here's my existing config-domain.yaml:

apiVersion: v1
kind: ConfigMap
metadata:
name: config-domain
namespace: knative-serving
data:
dev.mywebsite.ai: ""
 
Do I just add a new entry under data?
 
apiVersion: v1
kind: ConfigMap
metadata:
name: config-domain
namespace: knative-serving
data:
dev.mywebsite.ai: ""
dev.mywebsite.com: ""
I would like to host the service from multiple domains.
 
Thanks!
1 2 74
2 REPLIES 2

Hi @cypher115 

Welcome to Google Cloud Community!

As described on the available guide, adding the domain should be straightforward as you add it. Also, you may check the Knative github repo for the source code docs.

I hope this information is helpful.

If you need further assistance, you can reach out the Knative community team.

Hello, @RonEtch!

Thanks for the response. However, seems like only the first one 

dev.mywebsite.ai: "" 

 is being used.

 

How does prioritization work on these?

Thank you.

Top Labels in this Space