Evaluate K8S Gateway API to model sidecar behavior
Maintainers usually reply within 1 day
@louiscryan is already working on this.
Since Dec 17, 2019.
Assessment
This issue has not been assessed yet.
Description
Describe the feature request
Kubernetes is working on a new API proposal to evolve the state of ingress into the cluster ...
details ...
Istio will support this API just as we have for the current Ingress API. Looking at the API and comparing it with the Sidecar API it might be possible to use it to model that scenario as well. Doing so would have obvious benefits to users in terms of the universe of APIs they need to understand.
Some important points in that design that seem relevant:
- The definition of 'classes' is quite powerful and allows for implementation & default variation within the concrete API more easily. Might have applications for versioning in addition to behavior defaults.
- Gateway has a polymorphic reference to 'routes'. This seems like it could accommodate references to the types in the docs as well as VirtualService and Service/ServiceEntry. This is important for egress.
- The spec has adopted a model for 'extensions' that can be defined in-line contextual to elements in the API. The examples in the doc show extension of listeners. Could be used to support a wildcard ingress
- The use of 'endpoint' in the spec might not be general enough to handle capture for things like
Strawman for discussion:
- Define a Gateway class as ~ 'istio/sidecar'
- Can model scoped egress to services as Gateway -- [ref] --> Service / Service Entry. Other reference types could be useful here beyond the ones called out in the spec. E.g. a name matching rule against sets of services.
- To model a restrictive ingress either use an extension to reference the local backend (no need to use a resource ref for a route given context) or make a route type (a little verbose probably).
An alternative would be to expand the Istio Sidecar resource to support referencing XXXRoute types just as we would extend the Istio Gateway resource for the same. This would share the routing API model with K8S even if Sidecar was kept as a specialization in Istio.
Describe alternatives you've considered
Status quo
[X] Configuration Infrastructure
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[X] User Experience
Additional context
- Dominant language
- Go
- Stars
- 523
- Forks
- 623
- Avg merge
- 5d 20h
- Merged PRs (30d)
- 4
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from istio/api
-
Gateway CRD accepts both credentialName and tlsCertificates in server TLS settingsPossibly taken @RaphaelFakhri claimed this 23 days ago. Openarea/networking area/user experience
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
area/user experience kind/docs kind/enhancement
Difficulty 5/5 Over a week Newbie friendliness 40/100
Maintainers usually reply within 1 day
-
area/networking area/user experience kind/docs kind/enhancement
Difficulty 5/5 Over a week Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
[release-1.29] change default of statsCompression to trueMay be free again @keithmattix claimed this 304 days ago, and no pull request is open. Open
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
Similar issues
-
bug raised-by:verifier to:worker
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
medici-finance/assay#7835 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
golang-malawi/qatarina#496 ·
Maintainers usually reply within 2 days
-
hive size:simple
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
documentation stage:review
Difficulty 1/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
wso2/identity-customer-data-service#430 ·
Maintainers usually reply within 1 day