K8s SCTP support implementation for the first pull request
The requested Service Protocol is checked against the supported protocols of GCE Internal LB. The supported protocols are TCP and UDP. SCTP is not supported by OpenStack LBaaS. If SCTP is requested in a Service with type=LoadBalancer, the request is rejected. Comment style is also corrected. SCTP is not allowed for LoadBalancer Service and for HostPort. Kube-proxy can be configured not to start listening on the host port for SCTP: see the new SCTPUserSpaceNode parameter changed the vendor github.com/nokia/sctp to github.com/ishidawataru/sctp. I.e. from now on we use the upstream version. netexec.go compilation fixed. Various test cases fixed SCTP related conformance tests removed. Netexec's pod definition and Dockerfile are updated to expose the new SCTP port(8082) SCTP related e2e test cases are removed as the e2e test systems do not support SCTP sctp related firewall config is removed from cluster/gce/util.sh. Variable name sctp_addr is corrected to sctpAddr in pkg/proxy/ipvs/proxier.go cluster/gce/util.sh is copied from master
This commit is contained in:
10
api/openapi-spec/swagger.json
generated
10
api/openapi-spec/swagger.json
generated
@@ -79022,7 +79022,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"protocol": {
|
||||
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".",
|
||||
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
@@ -79269,7 +79269,7 @@
|
||||
"format": "int32"
|
||||
},
|
||||
"protocol": {
|
||||
"description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP.",
|
||||
"description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
@@ -82758,7 +82758,7 @@
|
||||
"format": "int32"
|
||||
},
|
||||
"protocol": {
|
||||
"description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP.",
|
||||
"description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.",
|
||||
"type": "string"
|
||||
},
|
||||
"targetPort": {
|
||||
@@ -84254,7 +84254,7 @@
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString"
|
||||
},
|
||||
"protocol": {
|
||||
"description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.",
|
||||
"description": "Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
@@ -84925,7 +84925,7 @@
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString"
|
||||
},
|
||||
"protocol": {
|
||||
"description": "The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.",
|
||||
"description": "The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
|
2
api/swagger-spec/apps_v1.json
generated
2
api/swagger-spec/apps_v1.json
generated
@@ -8018,7 +8018,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"."
|
||||
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\"."
|
||||
},
|
||||
"hostIP": {
|
||||
"type": "string",
|
||||
|
2
api/swagger-spec/apps_v1beta1.json
generated
2
api/swagger-spec/apps_v1beta1.json
generated
@@ -5626,7 +5626,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"."
|
||||
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\"."
|
||||
},
|
||||
"hostIP": {
|
||||
"type": "string",
|
||||
|
2
api/swagger-spec/apps_v1beta2.json
generated
2
api/swagger-spec/apps_v1beta2.json
generated
@@ -8018,7 +8018,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"."
|
||||
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\"."
|
||||
},
|
||||
"hostIP": {
|
||||
"type": "string",
|
||||
|
2
api/swagger-spec/batch_v1.json
generated
2
api/swagger-spec/batch_v1.json
generated
@@ -2933,7 +2933,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"."
|
||||
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\"."
|
||||
},
|
||||
"hostIP": {
|
||||
"type": "string",
|
||||
|
2
api/swagger-spec/batch_v1beta1.json
generated
2
api/swagger-spec/batch_v1beta1.json
generated
@@ -2988,7 +2988,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"."
|
||||
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\"."
|
||||
},
|
||||
"hostIP": {
|
||||
"type": "string",
|
||||
|
2
api/swagger-spec/batch_v2alpha1.json
generated
2
api/swagger-spec/batch_v2alpha1.json
generated
@@ -2988,7 +2988,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"."
|
||||
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\"."
|
||||
},
|
||||
"hostIP": {
|
||||
"type": "string",
|
||||
|
4
api/swagger-spec/extensions_v1beta1.json
generated
4
api/swagger-spec/extensions_v1beta1.json
generated
@@ -8666,7 +8666,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"."
|
||||
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\"."
|
||||
},
|
||||
"hostIP": {
|
||||
"type": "string",
|
||||
@@ -10280,7 +10280,7 @@
|
||||
"properties": {
|
||||
"protocol": {
|
||||
"$ref": "v1.Protocol",
|
||||
"description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP."
|
||||
"description": "Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP."
|
||||
},
|
||||
"port": {
|
||||
"type": "string",
|
||||
|
2
api/swagger-spec/networking.k8s.io_v1.json
generated
2
api/swagger-spec/networking.k8s.io_v1.json
generated
@@ -1426,7 +1426,7 @@
|
||||
"properties": {
|
||||
"protocol": {
|
||||
"$ref": "v1.Protocol",
|
||||
"description": "The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP."
|
||||
"description": "The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP."
|
||||
},
|
||||
"port": {
|
||||
"type": "string",
|
||||
|
6
api/swagger-spec/v1.json
generated
6
api/swagger-spec/v1.json
generated
@@ -18480,7 +18480,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP."
|
||||
"description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -21466,7 +21466,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"."
|
||||
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\"."
|
||||
},
|
||||
"hostIP": {
|
||||
"type": "string",
|
||||
@@ -23091,7 +23091,7 @@
|
||||
},
|
||||
"protocol": {
|
||||
"type": "string",
|
||||
"description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP."
|
||||
"description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP."
|
||||
},
|
||||
"port": {
|
||||
"type": "integer",
|
||||
|
Reference in New Issue
Block a user