Domainmapping support dir-path-based routing
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 1.2k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 2
Description
Describe the feature
now it's little complex to config routing different dir-path to different ksvc, istio VS should be configured. such as https://github.com/knative/serving/issues/11892,
So I think it's better to config this with domainmapping, like bellows(POC demo coding now):
domaincliam.yaml
root@jw [04:18:19 PM] [~jw/testyaml]
-> # cat domainclaim.yaml
apiVersion: networking.internal.knative.dev/v1alpha1
kind: ClusterDomainClaim
metadata:
name: test1.com
spec:
namespace: default
domainmapping.yaml
root@jw [04:18:19 PM] [~jw/testyaml]
-> # cat domainmapping.yaml
apiVersion: serving.knative.dev/v1alpha1
kind: DomainMapping
metadata:
name: test1.com
namespace: default
spec:
ref:
- match:
- uri:
prefix: "/"
name: home-page
kind: Service
apiVersion: serving.knative.dev/v1
- match:
- uri:
prefix: "/search"
name: search-go
kind: Service
apiVersion: serving.knative.dev/v1
- match:
- uri:
prefix: "/login"
name: login-go
kind: Service
apiVersion: serving.knative.dev/v1
This feature maybe just can be done based on istio gateway. Still not deeply check whether other gateways support.
/area API
/assign @julz @mattmoor what do u think of this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the DomainMapping and ClusterDomainClaim examples in the issue, then review how routing and Istio VirtualServices are currently configured. Determine the supported API shape and gateway implications; done means the project has an agreed design and documented implementation scope for path-based routing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes
- Domain
- api, networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100