forked from cw-ozaki/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serviceport-v1.json
48 lines (48 loc) · 1.55 KB
/
serviceport-v1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"description": "ServicePort contains information on service's port.",
"required": [
"port"
],
"properties": {
"name": {
"description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.",
"type": [
"string",
"null"
]
},
"nodePort": {
"description": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport",
"type": "integer",
"format": "int32"
},
"port": {
"description": "The port that will be exposed by this service.",
"type": "integer",
"format": "int32"
},
"protocol": {
"description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP.",
"type": [
"string",
"null"
]
},
"targetPort": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#",
"type": "object"
}