kubernetes_schemas 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +6 -0
- data/README.md +35 -0
- data/Rakefile +28 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/kubernetes_schemas.gemspec +30 -0
- data/lib/kubernetes_schemas/kubernetes_versions.rb +3 -0
- data/lib/kubernetes_schemas/version.rb +3 -0
- data/lib/kubernetes_schemas.rb +33 -0
- data/schemas/1.22/apigroup.json +119 -0
- data/schemas/1.22/apigrouplist.json +156 -0
- data/schemas/1.22/apiresourcelist.json +138 -0
- data/schemas/1.22/apiservice.json +431 -0
- data/schemas/1.22/apiservicelist.json +512 -0
- data/schemas/1.22/apiversions.json +76 -0
- data/schemas/1.22/binding.json +344 -0
- data/schemas/1.22/certificatesigningrequest.json +457 -0
- data/schemas/1.22/certificatesigningrequestlist.json +535 -0
- data/schemas/1.22/clusterrole.json +445 -0
- data/schemas/1.22/clusterrolebinding.json +355 -0
- data/schemas/1.22/clusterrolebindinglist.json +433 -0
- data/schemas/1.22/clusterrolelist.json +526 -0
- data/schemas/1.22/componentstatus.json +326 -0
- data/schemas/1.22/componentstatuslist.json +407 -0
- data/schemas/1.22/configmap.json +316 -0
- data/schemas/1.22/configmaplist.json +397 -0
- data/schemas/1.22/controllerrevision.json +300 -0
- data/schemas/1.22/controllerrevisionlist.json +378 -0
- data/schemas/1.22/cronjob.json +9720 -0
- data/schemas/1.22/cronjoblist.json +9801 -0
- data/schemas/1.22/csidriver.json +375 -0
- data/schemas/1.22/csidriverlist.json +453 -0
- data/schemas/1.22/csinode.json +354 -0
- data/schemas/1.22/csinodelist.json +432 -0
- data/schemas/1.22/csistoragecapacity.json +390 -0
- data/schemas/1.22/csistoragecapacitylist.json +472 -0
- data/schemas/1.22/daemonset.json +9453 -0
- data/schemas/1.22/daemonsetlist.json +9534 -0
- data/schemas/1.22/deleteoptions.json +334 -0
- data/schemas/1.22/deployment.json +9474 -0
- data/schemas/1.22/deploymentlist.json +9555 -0
- data/schemas/1.22/endpoints.json +538 -0
- data/schemas/1.22/endpointslice.json +519 -0
- data/schemas/1.22/endpointslicelist.json +594 -0
- data/schemas/1.22/endpointslist.json +619 -0
- data/schemas/1.22/event.json +523 -0
- data/schemas/1.22/eventlist.json +601 -0
- data/schemas/1.22/eviction.json +618 -0
- data/schemas/1.22/flowschema.json +619 -0
- data/schemas/1.22/flowschemalist.json +700 -0
- data/schemas/1.22/horizontalpodautoscaler.json +1770 -0
- data/schemas/1.22/horizontalpodautoscalerlist.json +1851 -0
- data/schemas/1.22/ingress.json +638 -0
- data/schemas/1.22/ingressclass.json +340 -0
- data/schemas/1.22/ingressclasslist.json +421 -0
- data/schemas/1.22/ingresslist.json +719 -0
- data/schemas/1.22/job.json +9470 -0
- data/schemas/1.22/joblist.json +9551 -0
- data/schemas/1.22/lease.json +330 -0
- data/schemas/1.22/leaselist.json +411 -0
- data/schemas/1.22/limitrange.json +429 -0
- data/schemas/1.22/limitrangelist.json +510 -0
- data/schemas/1.22/localsubjectaccessreview.json +458 -0
- data/schemas/1.22/mutatingwebhookconfiguration.json +617 -0
- data/schemas/1.22/mutatingwebhookconfigurationlist.json +698 -0
- data/schemas/1.22/namespace.json +370 -0
- data/schemas/1.22/namespacelist.json +451 -0
- data/schemas/1.22/networkpolicy.json +850 -0
- data/schemas/1.22/networkpolicylist.json +931 -0
- data/schemas/1.22/node.json +905 -0
- data/schemas/1.22/nodelist.json +986 -0
- data/schemas/1.22/persistentvolume.json +1775 -0
- data/schemas/1.22/persistentvolumeclaim.json +614 -0
- data/schemas/1.22/persistentvolumeclaimlist.json +695 -0
- data/schemas/1.22/persistentvolumelist.json +1856 -0
- data/schemas/1.22/pod.json +9911 -0
- data/schemas/1.22/poddisruptionbudget.json +505 -0
- data/schemas/1.22/poddisruptionbudgetlist.json +586 -0
- data/schemas/1.22/podlist.json +9992 -0
- data/schemas/1.22/podsecuritypolicy.json +797 -0
- data/schemas/1.22/podsecuritypolicylist.json +878 -0
- data/schemas/1.22/podtemplate.json +9180 -0
- data/schemas/1.22/podtemplatelist.json +9261 -0
- data/schemas/1.22/priorityclass.json +314 -0
- data/schemas/1.22/priorityclasslist.json +392 -0
- data/schemas/1.22/prioritylevelconfiguration.json +445 -0
- data/schemas/1.22/prioritylevelconfigurationlist.json +526 -0
- data/schemas/1.22/replicaset.json +9372 -0
- data/schemas/1.22/replicasetlist.json +9453 -0
- data/schemas/1.22/replicationcontroller.json +9320 -0
- data/schemas/1.22/replicationcontrollerlist.json +9401 -0
- data/schemas/1.22/resourcequota.json +433 -0
- data/schemas/1.22/resourcequotalist.json +514 -0
- data/schemas/1.22/role.json +363 -0
- data/schemas/1.22/rolebinding.json +355 -0
- data/schemas/1.22/rolebindinglist.json +433 -0
- data/schemas/1.22/rolelist.json +444 -0
- data/schemas/1.22/runtimeclass.json +400 -0
- data/schemas/1.22/runtimeclasslist.json +478 -0
- data/schemas/1.22/scale.json +323 -0
- data/schemas/1.22/secret.json +323 -0
- data/schemas/1.22/secretlist.json +404 -0
- data/schemas/1.22/selfsubjectaccessreview.json +412 -0
- data/schemas/1.22/selfsubjectrulesreview.json +430 -0
- data/schemas/1.22/service.json +688 -0
- data/schemas/1.22/serviceaccount.json +381 -0
- data/schemas/1.22/serviceaccountlist.json +462 -0
- data/schemas/1.22/servicelist.json +769 -0
- data/schemas/1.22/statefulset.json +10076 -0
- data/schemas/1.22/statefulsetlist.json +10157 -0
- data/schemas/1.22/status.json +180 -0
- data/schemas/1.22/storageclass.json +391 -0
- data/schemas/1.22/storageclasslist.json +469 -0
- data/schemas/1.22/subjectaccessreview.json +458 -0
- data/schemas/1.22/tokenreview.json +405 -0
- data/schemas/1.22/validatingwebhookconfiguration.json +610 -0
- data/schemas/1.22/validatingwebhookconfigurationlist.json +691 -0
- data/schemas/1.22/volumeattachment.json +1860 -0
- data/schemas/1.22/volumeattachmentlist.json +1938 -0
- data/schemas/1.22/watchevent.json +276 -0
- metadata +207 -0
@@ -0,0 +1,688 @@
|
|
1
|
+
{
|
2
|
+
"description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"apiVersion": {
|
6
|
+
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
7
|
+
"type": [
|
8
|
+
"string",
|
9
|
+
"null"
|
10
|
+
]
|
11
|
+
},
|
12
|
+
"kind": {
|
13
|
+
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
14
|
+
"type": [
|
15
|
+
"string",
|
16
|
+
"null"
|
17
|
+
],
|
18
|
+
"enum": [
|
19
|
+
"Service"
|
20
|
+
]
|
21
|
+
},
|
22
|
+
"metadata": {
|
23
|
+
"description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
|
24
|
+
"type": [
|
25
|
+
"object",
|
26
|
+
"null"
|
27
|
+
],
|
28
|
+
"properties": {
|
29
|
+
"annotations": {
|
30
|
+
"description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations",
|
31
|
+
"type": [
|
32
|
+
"object",
|
33
|
+
"null"
|
34
|
+
],
|
35
|
+
"additionalProperties": {
|
36
|
+
"type": [
|
37
|
+
"string",
|
38
|
+
"null"
|
39
|
+
]
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"clusterName": {
|
43
|
+
"description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.",
|
44
|
+
"type": [
|
45
|
+
"string",
|
46
|
+
"null"
|
47
|
+
]
|
48
|
+
},
|
49
|
+
"creationTimestamp": {
|
50
|
+
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
|
51
|
+
"type": [
|
52
|
+
"string",
|
53
|
+
"null"
|
54
|
+
],
|
55
|
+
"format": "date-time"
|
56
|
+
},
|
57
|
+
"deletionGracePeriodSeconds": {
|
58
|
+
"description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.",
|
59
|
+
"type": [
|
60
|
+
"integer",
|
61
|
+
"null"
|
62
|
+
],
|
63
|
+
"format": "int64"
|
64
|
+
},
|
65
|
+
"deletionTimestamp": {
|
66
|
+
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
|
67
|
+
"type": [
|
68
|
+
"string",
|
69
|
+
"null"
|
70
|
+
],
|
71
|
+
"format": "date-time"
|
72
|
+
},
|
73
|
+
"finalizers": {
|
74
|
+
"description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.",
|
75
|
+
"type": [
|
76
|
+
"array",
|
77
|
+
"null"
|
78
|
+
],
|
79
|
+
"items": {
|
80
|
+
"type": [
|
81
|
+
"string",
|
82
|
+
"null"
|
83
|
+
]
|
84
|
+
},
|
85
|
+
"x-kubernetes-patch-strategy": "merge"
|
86
|
+
},
|
87
|
+
"generateName": {
|
88
|
+
"description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency",
|
89
|
+
"type": [
|
90
|
+
"string",
|
91
|
+
"null"
|
92
|
+
]
|
93
|
+
},
|
94
|
+
"generation": {
|
95
|
+
"description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.",
|
96
|
+
"type": [
|
97
|
+
"integer",
|
98
|
+
"null"
|
99
|
+
],
|
100
|
+
"format": "int64"
|
101
|
+
},
|
102
|
+
"labels": {
|
103
|
+
"description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",
|
104
|
+
"type": [
|
105
|
+
"object",
|
106
|
+
"null"
|
107
|
+
],
|
108
|
+
"additionalProperties": {
|
109
|
+
"type": [
|
110
|
+
"string",
|
111
|
+
"null"
|
112
|
+
]
|
113
|
+
}
|
114
|
+
},
|
115
|
+
"managedFields": {
|
116
|
+
"description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.",
|
117
|
+
"type": [
|
118
|
+
"array",
|
119
|
+
"null"
|
120
|
+
],
|
121
|
+
"items": {
|
122
|
+
"description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.",
|
123
|
+
"type": [
|
124
|
+
"object",
|
125
|
+
"null"
|
126
|
+
],
|
127
|
+
"properties": {
|
128
|
+
"apiVersion": {
|
129
|
+
"description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.",
|
130
|
+
"type": [
|
131
|
+
"string",
|
132
|
+
"null"
|
133
|
+
]
|
134
|
+
},
|
135
|
+
"fieldsType": {
|
136
|
+
"description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"",
|
137
|
+
"type": [
|
138
|
+
"string",
|
139
|
+
"null"
|
140
|
+
]
|
141
|
+
},
|
142
|
+
"fieldsV1": {
|
143
|
+
"description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff",
|
144
|
+
"type": [
|
145
|
+
"object",
|
146
|
+
"null"
|
147
|
+
]
|
148
|
+
},
|
149
|
+
"manager": {
|
150
|
+
"description": "Manager is an identifier of the workflow managing these fields.",
|
151
|
+
"type": [
|
152
|
+
"string",
|
153
|
+
"null"
|
154
|
+
]
|
155
|
+
},
|
156
|
+
"operation": {
|
157
|
+
"description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.",
|
158
|
+
"type": [
|
159
|
+
"string",
|
160
|
+
"null"
|
161
|
+
]
|
162
|
+
},
|
163
|
+
"subresource": {
|
164
|
+
"description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.",
|
165
|
+
"type": [
|
166
|
+
"string",
|
167
|
+
"null"
|
168
|
+
]
|
169
|
+
},
|
170
|
+
"time": {
|
171
|
+
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
|
172
|
+
"type": [
|
173
|
+
"string",
|
174
|
+
"null"
|
175
|
+
],
|
176
|
+
"format": "date-time"
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
180
|
+
},
|
181
|
+
"name": {
|
182
|
+
"description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
|
183
|
+
"type": [
|
184
|
+
"string",
|
185
|
+
"null"
|
186
|
+
]
|
187
|
+
},
|
188
|
+
"namespace": {
|
189
|
+
"description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces",
|
190
|
+
"type": [
|
191
|
+
"string",
|
192
|
+
"null"
|
193
|
+
]
|
194
|
+
},
|
195
|
+
"ownerReferences": {
|
196
|
+
"description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.",
|
197
|
+
"type": [
|
198
|
+
"array",
|
199
|
+
"null"
|
200
|
+
],
|
201
|
+
"items": {
|
202
|
+
"description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.",
|
203
|
+
"type": [
|
204
|
+
"object",
|
205
|
+
"null"
|
206
|
+
],
|
207
|
+
"required": [
|
208
|
+
"apiVersion",
|
209
|
+
"kind",
|
210
|
+
"name",
|
211
|
+
"uid"
|
212
|
+
],
|
213
|
+
"properties": {
|
214
|
+
"apiVersion": {
|
215
|
+
"description": "API version of the referent.",
|
216
|
+
"type": "string"
|
217
|
+
},
|
218
|
+
"blockOwnerDeletion": {
|
219
|
+
"description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.",
|
220
|
+
"type": [
|
221
|
+
"boolean",
|
222
|
+
"null"
|
223
|
+
]
|
224
|
+
},
|
225
|
+
"controller": {
|
226
|
+
"description": "If true, this reference points to the managing controller.",
|
227
|
+
"type": [
|
228
|
+
"boolean",
|
229
|
+
"null"
|
230
|
+
]
|
231
|
+
},
|
232
|
+
"kind": {
|
233
|
+
"description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
234
|
+
"type": "string"
|
235
|
+
},
|
236
|
+
"name": {
|
237
|
+
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
|
238
|
+
"type": "string"
|
239
|
+
},
|
240
|
+
"uid": {
|
241
|
+
"description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
|
242
|
+
"type": "string"
|
243
|
+
}
|
244
|
+
},
|
245
|
+
"x-kubernetes-map-type": "atomic"
|
246
|
+
},
|
247
|
+
"x-kubernetes-patch-merge-key": "uid",
|
248
|
+
"x-kubernetes-patch-strategy": "merge"
|
249
|
+
},
|
250
|
+
"resourceVersion": {
|
251
|
+
"description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
|
252
|
+
"type": [
|
253
|
+
"string",
|
254
|
+
"null"
|
255
|
+
]
|
256
|
+
},
|
257
|
+
"selfLink": {
|
258
|
+
"description": "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.",
|
259
|
+
"type": [
|
260
|
+
"string",
|
261
|
+
"null"
|
262
|
+
]
|
263
|
+
},
|
264
|
+
"uid": {
|
265
|
+
"description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
|
266
|
+
"type": [
|
267
|
+
"string",
|
268
|
+
"null"
|
269
|
+
]
|
270
|
+
}
|
271
|
+
}
|
272
|
+
},
|
273
|
+
"spec": {
|
274
|
+
"description": "ServiceSpec describes the attributes that a user creates on a service.",
|
275
|
+
"type": [
|
276
|
+
"object",
|
277
|
+
"null"
|
278
|
+
],
|
279
|
+
"properties": {
|
280
|
+
"allocateLoadBalancerNodePorts": {
|
281
|
+
"description": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.",
|
282
|
+
"type": [
|
283
|
+
"boolean",
|
284
|
+
"null"
|
285
|
+
]
|
286
|
+
},
|
287
|
+
"clusterIP": {
|
288
|
+
"description": "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
|
289
|
+
"type": [
|
290
|
+
"string",
|
291
|
+
"null"
|
292
|
+
]
|
293
|
+
},
|
294
|
+
"clusterIPs": {
|
295
|
+
"description": "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nUnless the \"IPv6DualStack\" feature gate is enabled, this field is limited to one value, which must be the same as the clusterIP field. If the feature gate is enabled, this field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
|
296
|
+
"type": [
|
297
|
+
"array",
|
298
|
+
"null"
|
299
|
+
],
|
300
|
+
"items": {
|
301
|
+
"type": [
|
302
|
+
"string",
|
303
|
+
"null"
|
304
|
+
]
|
305
|
+
},
|
306
|
+
"x-kubernetes-list-type": "atomic"
|
307
|
+
},
|
308
|
+
"externalIPs": {
|
309
|
+
"description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.",
|
310
|
+
"type": [
|
311
|
+
"array",
|
312
|
+
"null"
|
313
|
+
],
|
314
|
+
"items": {
|
315
|
+
"type": [
|
316
|
+
"string",
|
317
|
+
"null"
|
318
|
+
]
|
319
|
+
}
|
320
|
+
},
|
321
|
+
"externalName": {
|
322
|
+
"description": "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".",
|
323
|
+
"type": [
|
324
|
+
"string",
|
325
|
+
"null"
|
326
|
+
]
|
327
|
+
},
|
328
|
+
"externalTrafficPolicy": {
|
329
|
+
"description": "externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.",
|
330
|
+
"type": [
|
331
|
+
"string",
|
332
|
+
"null"
|
333
|
+
]
|
334
|
+
},
|
335
|
+
"healthCheckNodePort": {
|
336
|
+
"description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type).",
|
337
|
+
"type": [
|
338
|
+
"integer",
|
339
|
+
"null"
|
340
|
+
],
|
341
|
+
"format": "int32"
|
342
|
+
},
|
343
|
+
"internalTrafficPolicy": {
|
344
|
+
"description": "InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\".",
|
345
|
+
"type": [
|
346
|
+
"string",
|
347
|
+
"null"
|
348
|
+
]
|
349
|
+
},
|
350
|
+
"ipFamilies": {
|
351
|
+
"description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service, and is gated by the \"IPv6DualStack\" feature gate. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.",
|
352
|
+
"type": [
|
353
|
+
"array",
|
354
|
+
"null"
|
355
|
+
],
|
356
|
+
"items": {
|
357
|
+
"type": [
|
358
|
+
"string",
|
359
|
+
"null"
|
360
|
+
]
|
361
|
+
},
|
362
|
+
"x-kubernetes-list-type": "atomic"
|
363
|
+
},
|
364
|
+
"ipFamilyPolicy": {
|
365
|
+
"description": "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service, and is gated by the \"IPv6DualStack\" feature gate. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.",
|
366
|
+
"type": [
|
367
|
+
"string",
|
368
|
+
"null"
|
369
|
+
]
|
370
|
+
},
|
371
|
+
"loadBalancerClass": {
|
372
|
+
"description": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.",
|
373
|
+
"type": [
|
374
|
+
"string",
|
375
|
+
"null"
|
376
|
+
]
|
377
|
+
},
|
378
|
+
"loadBalancerIP": {
|
379
|
+
"description": "Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.",
|
380
|
+
"type": [
|
381
|
+
"string",
|
382
|
+
"null"
|
383
|
+
]
|
384
|
+
},
|
385
|
+
"loadBalancerSourceRanges": {
|
386
|
+
"description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/",
|
387
|
+
"type": [
|
388
|
+
"array",
|
389
|
+
"null"
|
390
|
+
],
|
391
|
+
"items": {
|
392
|
+
"type": [
|
393
|
+
"string",
|
394
|
+
"null"
|
395
|
+
]
|
396
|
+
}
|
397
|
+
},
|
398
|
+
"ports": {
|
399
|
+
"description": "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
|
400
|
+
"type": [
|
401
|
+
"array",
|
402
|
+
"null"
|
403
|
+
],
|
404
|
+
"items": {
|
405
|
+
"description": "ServicePort contains information on service's port.",
|
406
|
+
"type": [
|
407
|
+
"object",
|
408
|
+
"null"
|
409
|
+
],
|
410
|
+
"required": [
|
411
|
+
"port"
|
412
|
+
],
|
413
|
+
"properties": {
|
414
|
+
"appProtocol": {
|
415
|
+
"description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.",
|
416
|
+
"type": [
|
417
|
+
"string",
|
418
|
+
"null"
|
419
|
+
]
|
420
|
+
},
|
421
|
+
"name": {
|
422
|
+
"description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.",
|
423
|
+
"type": [
|
424
|
+
"string",
|
425
|
+
"null"
|
426
|
+
]
|
427
|
+
},
|
428
|
+
"nodePort": {
|
429
|
+
"description": "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport",
|
430
|
+
"type": [
|
431
|
+
"integer",
|
432
|
+
"null"
|
433
|
+
],
|
434
|
+
"format": "int32"
|
435
|
+
},
|
436
|
+
"port": {
|
437
|
+
"description": "The port that will be exposed by this service.",
|
438
|
+
"type": "integer",
|
439
|
+
"format": "int32"
|
440
|
+
},
|
441
|
+
"protocol": {
|
442
|
+
"description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.",
|
443
|
+
"type": [
|
444
|
+
"string",
|
445
|
+
"null"
|
446
|
+
]
|
447
|
+
},
|
448
|
+
"targetPort": {
|
449
|
+
"oneOf": [
|
450
|
+
{
|
451
|
+
"type": [
|
452
|
+
"string",
|
453
|
+
"null"
|
454
|
+
]
|
455
|
+
},
|
456
|
+
{
|
457
|
+
"type": [
|
458
|
+
"integer",
|
459
|
+
"null"
|
460
|
+
]
|
461
|
+
}
|
462
|
+
]
|
463
|
+
}
|
464
|
+
}
|
465
|
+
},
|
466
|
+
"x-kubernetes-list-map-keys": [
|
467
|
+
"port",
|
468
|
+
"protocol"
|
469
|
+
],
|
470
|
+
"x-kubernetes-list-type": "map",
|
471
|
+
"x-kubernetes-patch-merge-key": "port",
|
472
|
+
"x-kubernetes-patch-strategy": "merge"
|
473
|
+
},
|
474
|
+
"publishNotReadyAddresses": {
|
475
|
+
"description": "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.",
|
476
|
+
"type": [
|
477
|
+
"boolean",
|
478
|
+
"null"
|
479
|
+
]
|
480
|
+
},
|
481
|
+
"selector": {
|
482
|
+
"description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/",
|
483
|
+
"type": [
|
484
|
+
"object",
|
485
|
+
"null"
|
486
|
+
],
|
487
|
+
"additionalProperties": {
|
488
|
+
"type": [
|
489
|
+
"string",
|
490
|
+
"null"
|
491
|
+
]
|
492
|
+
},
|
493
|
+
"x-kubernetes-map-type": "atomic"
|
494
|
+
},
|
495
|
+
"sessionAffinity": {
|
496
|
+
"description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
|
497
|
+
"type": [
|
498
|
+
"string",
|
499
|
+
"null"
|
500
|
+
]
|
501
|
+
},
|
502
|
+
"sessionAffinityConfig": {
|
503
|
+
"description": "SessionAffinityConfig represents the configurations of session affinity.",
|
504
|
+
"type": [
|
505
|
+
"object",
|
506
|
+
"null"
|
507
|
+
],
|
508
|
+
"properties": {
|
509
|
+
"clientIP": {
|
510
|
+
"description": "ClientIPConfig represents the configurations of Client IP based session affinity.",
|
511
|
+
"type": [
|
512
|
+
"object",
|
513
|
+
"null"
|
514
|
+
],
|
515
|
+
"properties": {
|
516
|
+
"timeoutSeconds": {
|
517
|
+
"description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).",
|
518
|
+
"type": [
|
519
|
+
"integer",
|
520
|
+
"null"
|
521
|
+
],
|
522
|
+
"format": "int32"
|
523
|
+
}
|
524
|
+
}
|
525
|
+
}
|
526
|
+
}
|
527
|
+
},
|
528
|
+
"type": {
|
529
|
+
"description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types",
|
530
|
+
"type": [
|
531
|
+
"string",
|
532
|
+
"null"
|
533
|
+
]
|
534
|
+
}
|
535
|
+
}
|
536
|
+
},
|
537
|
+
"status": {
|
538
|
+
"description": "ServiceStatus represents the current status of a service.",
|
539
|
+
"type": [
|
540
|
+
"object",
|
541
|
+
"null"
|
542
|
+
],
|
543
|
+
"properties": {
|
544
|
+
"conditions": {
|
545
|
+
"description": "Current service state",
|
546
|
+
"type": [
|
547
|
+
"array",
|
548
|
+
"null"
|
549
|
+
],
|
550
|
+
"items": {
|
551
|
+
"description": "Condition contains details for one aspect of the current state of this API Resource.",
|
552
|
+
"type": [
|
553
|
+
"object",
|
554
|
+
"null"
|
555
|
+
],
|
556
|
+
"required": [
|
557
|
+
"type",
|
558
|
+
"status",
|
559
|
+
"lastTransitionTime",
|
560
|
+
"reason",
|
561
|
+
"message"
|
562
|
+
],
|
563
|
+
"properties": {
|
564
|
+
"lastTransitionTime": {
|
565
|
+
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
|
566
|
+
"type": "string",
|
567
|
+
"format": "date-time"
|
568
|
+
},
|
569
|
+
"message": {
|
570
|
+
"description": "message is a human readable message indicating details about the transition. This may be an empty string.",
|
571
|
+
"type": "string"
|
572
|
+
},
|
573
|
+
"observedGeneration": {
|
574
|
+
"description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.",
|
575
|
+
"type": [
|
576
|
+
"integer",
|
577
|
+
"null"
|
578
|
+
],
|
579
|
+
"format": "int64"
|
580
|
+
},
|
581
|
+
"reason": {
|
582
|
+
"description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.",
|
583
|
+
"type": "string"
|
584
|
+
},
|
585
|
+
"status": {
|
586
|
+
"description": "status of the condition, one of True, False, Unknown.",
|
587
|
+
"type": "string"
|
588
|
+
},
|
589
|
+
"type": {
|
590
|
+
"description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
|
591
|
+
"type": "string"
|
592
|
+
}
|
593
|
+
}
|
594
|
+
},
|
595
|
+
"x-kubernetes-list-map-keys": [
|
596
|
+
"type"
|
597
|
+
],
|
598
|
+
"x-kubernetes-list-type": "map",
|
599
|
+
"x-kubernetes-patch-merge-key": "type",
|
600
|
+
"x-kubernetes-patch-strategy": "merge"
|
601
|
+
},
|
602
|
+
"loadBalancer": {
|
603
|
+
"description": "LoadBalancerStatus represents the status of a load-balancer.",
|
604
|
+
"type": [
|
605
|
+
"object",
|
606
|
+
"null"
|
607
|
+
],
|
608
|
+
"properties": {
|
609
|
+
"ingress": {
|
610
|
+
"description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.",
|
611
|
+
"type": [
|
612
|
+
"array",
|
613
|
+
"null"
|
614
|
+
],
|
615
|
+
"items": {
|
616
|
+
"description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.",
|
617
|
+
"type": [
|
618
|
+
"object",
|
619
|
+
"null"
|
620
|
+
],
|
621
|
+
"properties": {
|
622
|
+
"hostname": {
|
623
|
+
"description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)",
|
624
|
+
"type": [
|
625
|
+
"string",
|
626
|
+
"null"
|
627
|
+
]
|
628
|
+
},
|
629
|
+
"ip": {
|
630
|
+
"description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)",
|
631
|
+
"type": [
|
632
|
+
"string",
|
633
|
+
"null"
|
634
|
+
]
|
635
|
+
},
|
636
|
+
"ports": {
|
637
|
+
"description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it",
|
638
|
+
"type": [
|
639
|
+
"array",
|
640
|
+
"null"
|
641
|
+
],
|
642
|
+
"items": {
|
643
|
+
"type": [
|
644
|
+
"object",
|
645
|
+
"null"
|
646
|
+
],
|
647
|
+
"required": [
|
648
|
+
"port",
|
649
|
+
"protocol"
|
650
|
+
],
|
651
|
+
"properties": {
|
652
|
+
"error": {
|
653
|
+
"description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.",
|
654
|
+
"type": [
|
655
|
+
"string",
|
656
|
+
"null"
|
657
|
+
]
|
658
|
+
},
|
659
|
+
"port": {
|
660
|
+
"description": "Port is the port number of the service port of which status is recorded here",
|
661
|
+
"type": "integer",
|
662
|
+
"format": "int32"
|
663
|
+
},
|
664
|
+
"protocol": {
|
665
|
+
"description": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"",
|
666
|
+
"type": "string"
|
667
|
+
}
|
668
|
+
}
|
669
|
+
},
|
670
|
+
"x-kubernetes-list-type": "atomic"
|
671
|
+
}
|
672
|
+
}
|
673
|
+
}
|
674
|
+
}
|
675
|
+
}
|
676
|
+
}
|
677
|
+
}
|
678
|
+
}
|
679
|
+
},
|
680
|
+
"x-kubernetes-group-version-kind": [
|
681
|
+
{
|
682
|
+
"group": "",
|
683
|
+
"kind": "Service",
|
684
|
+
"version": "v1"
|
685
|
+
}
|
686
|
+
],
|
687
|
+
"$schema": "http://json-schema.org/schema#"
|
688
|
+
}
|