Backend Protocol
Experimental Channel in v1.0.0+
This concept is part of the Experimental Channel in v1.0.0+
.
Not all implementations of Gateway API support automatic protocol selection. In some cases protocols are disabled without an explicit opt-in.
When a Route’s backend references a Kubernetes Service, application developers can specify the protocol using ServicePort
appProtocol field.
For example the following store
Kubernetes Service is indicating the port 8080
supports HTTP/2 Prior Knowledge.
apiVersion: v1
kind: Service
metadata:
name: store
spec:
selector:
app: store
ports:
- protocol: TCP
appProtocol: kubernetes.io/h2c
port: 8080
targetPort: 8080
Currently, Gateway API has conformance testing for:
kubernetes.io/h2c
- HTTP/2 Prior Knowledgekubernetes.io/ws
- WebSocket over HTTP
当前内容版权归 Kubernetes Gateway API 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Kubernetes Gateway API .