We are trying to replicate the existing Traefik configuration with Kong Ingress Controller on Kubernetes cluster.
Currently, I'm trying to configure the sub domain in Kong ingress controller and not sure how exactly to proceed with this.
Below code is from Traefik configuration. Could you please help me configure the similar in Kong.
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: application-xyz
namespace: default
spec:
tls: {}
entryPoints:
- web
- websecure
routes:
- match: "HostRegexp(`{sub:(www.)?}mycompany.com`) && PathPrefix(`/`)"
kind: Rule
priority: 1
services:
- name: application-xyz-service
port: 80
Thanks in Advance.