I am using Ambassador API Gateway in my GKE as below:
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: my-service
spec:
host: app.mycompany.com
prefix: /
service: my-service
However, I would like to map all sub domains (*.mycompany.com) and route to my-service
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: my-service
spec:
host: *.app.mycompany.com
prefix: /
service: my-service
How to map wildcard subdomain?
Based on this documentation, you have to set the host as a regex pattern to match against your subdomains.
So in your case, you'd want this: