-
Notifications
You must be signed in to change notification settings - Fork 242
/
Copy pathgcpclustertemplate_v1beta1.json
286 lines (286 loc) · 16.6 KB
/
gcpclustertemplate_v1beta1.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
{
"description": "GCPClusterTemplate is the Schema for the gcpclustertemplates API.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"description": "GCPClusterTemplateSpec defines the desired state of GCPClusterTemplate.",
"properties": {
"template": {
"description": "GCPClusterTemplateResource contains spec for GCPClusterSpec.",
"properties": {
"metadata": {
"description": "Standard object's metadata.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"properties": {
"annotations": {
"additionalProperties": {
"type": "string"
},
"description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations",
"type": "object"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels",
"type": "object"
}
},
"type": "object",
"additionalProperties": false
},
"spec": {
"description": "GCPClusterSpec defines the desired state of GCPCluster.",
"properties": {
"additionalLabels": {
"additionalProperties": {
"type": "string"
},
"description": "AdditionalLabels is an optional set of tags to add to GCP resources managed by the GCP provider, in addition to the\nones added by default.",
"type": "object"
},
"controlPlaneEndpoint": {
"description": "ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.",
"properties": {
"host": {
"description": "The hostname on which the API server is serving.",
"type": "string"
},
"port": {
"description": "The port on which the API server is serving.",
"format": "int32",
"type": "integer"
}
},
"required": [
"host",
"port"
],
"type": "object",
"additionalProperties": false
},
"credentialsRef": {
"description": "CredentialsRef is a reference to a Secret that contains the credentials to use for provisioning this cluster. If not\nsupplied then the credentials of the controller will be used.",
"properties": {
"name": {
"description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"namespace": {
"description": "Namespace of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
"type": "string"
}
},
"required": [
"name",
"namespace"
],
"type": "object",
"additionalProperties": false
},
"failureDomains": {
"description": "FailureDomains is an optional field which is used to assign selected availability zones to a cluster\nFailureDomains if empty, defaults to all the zones in the selected region and if specified would override\nthe default zones.",
"items": {
"type": "string"
},
"type": "array"
},
"loadBalancer": {
"description": "LoadBalancer contains configuration for one or more LoadBalancers.",
"properties": {
"apiServerInstanceGroupTagOverride": {
"description": "APIServerInstanceGroupTagOverride overrides the default setting for the\ntag used when creating the API Server Instance Group.",
"maxLength": 16,
"pattern": "(^[1-9][0-9]{0,31}$)|(^[a-z][a-z0-9-]{4,28}[a-z0-9]$)",
"type": "string"
},
"internalLoadBalancer": {
"description": "InternalLoadBalancer is the configuration for an Internal Passthrough Network Load Balancer.",
"properties": {
"name": {
"description": "Name is the name of the Load Balancer. If not set a default name\nwill be used. For an Internal Load Balancer service the default\nname is \"api-internal\".",
"pattern": "(^[1-9][0-9]{0,31}$)|(^[a-z][a-z0-9-]{4,28}[a-z0-9]$)",
"type": "string"
},
"subnet": {
"description": "Subnet is the name of the subnet to use for a regional Load Balancer. A subnet is\nrequired for the Load Balancer, if not defined the first configured subnet will be\nused.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"loadBalancerType": {
"description": "LoadBalancerType defines the type of Load Balancer that should be created.\nIf not set, a Global External Proxy Load Balancer will be created by default.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"network": {
"description": "NetworkSpec encapsulates all things related to GCP network.",
"properties": {
"autoCreateSubnetworks": {
"description": "AutoCreateSubnetworks: When set to true, the VPC network is created\nin \"auto\" mode. When set to false, the VPC network is created in\n\"custom\" mode.\n\nAn auto mode VPC network starts with one subnet per region. Each\nsubnet has a predetermined range as described in Auto mode VPC\nnetwork IP ranges.\n\nDefaults to true.",
"type": "boolean"
},
"hostProject": {
"description": "HostProject is the name of the project hosting the shared VPC network resources.",
"type": "string"
},
"loadBalancerBackendPort": {
"description": "Allow for configuration of load balancer backend (useful for changing apiserver port)",
"format": "int32",
"type": "integer"
},
"mtu": {
"default": 1460,
"description": "Mtu: Maximum Transmission Unit in bytes. The minimum value for this field is\n1300 and the maximum value is 8896. The suggested value is 1500, which is\nthe default MTU used on the Internet, or 8896 if you want to use Jumbo\nframes. If unspecified, the value defaults to 1460.\nMore info: https://pkg.go.dev/google.golang.org/api/compute/v1#Network",
"format": "int64",
"maximum": 8896,
"minimum": 1300,
"type": "integer"
},
"name": {
"description": "Name is the name of the network to be used.",
"type": "string"
},
"subnets": {
"description": "Subnets configuration.",
"items": {
"description": "SubnetSpec configures an GCP Subnet.",
"properties": {
"cidrBlock": {
"description": "CidrBlock is the range of internal addresses that are owned by this\nsubnetwork. Provide this property when you create the subnetwork. For\nexample, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and\nnon-overlapping within a network. Only IPv4 is supported. This field\ncan be set only at resource creation time.",
"type": "string"
},
"description": {
"description": "Description is an optional description associated with the resource.",
"type": "string"
},
"enableFlowLogs": {
"description": "EnableFlowLogs: Whether to enable flow logging for this subnetwork.\nIf this field is not explicitly set, it will not appear in get\nlistings. If not set the default behavior is to disable flow logging.",
"type": "boolean"
},
"name": {
"description": "Name defines a unique identifier to reference this resource.",
"type": "string"
},
"privateGoogleAccess": {
"description": "PrivateGoogleAccess defines whether VMs in this subnet can access\nGoogle services without assigning external IP addresses",
"type": "boolean"
},
"purpose": {
"default": "PRIVATE_RFC_1918",
"description": "Purpose: The purpose of the resource.\nIf unspecified, the purpose defaults to PRIVATE_RFC_1918.\nThe enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.\n\nPossible values:\n \"INTERNAL_HTTPS_LOAD_BALANCER\" - Subnet reserved for Internal\nHTTP(S) Load Balancing.\n \"PRIVATE\" - Regular user created or automatically created subnet.\n \"PRIVATE_RFC_1918\" - Regular user created or automatically created\nsubnet.\n \"PRIVATE_SERVICE_CONNECT\" - Subnetworks created for Private Service\nConnect in the producer network.\n \"REGIONAL_MANAGED_PROXY\" - Subnetwork used for Regional\nInternal/External HTTP(S) Load Balancing.",
"enum": [
"INTERNAL_HTTPS_LOAD_BALANCER",
"PRIVATE_RFC_1918",
"PRIVATE",
"PRIVATE_SERVICE_CONNECT",
"REGIONAL_MANAGED_PROXY"
],
"type": "string"
},
"region": {
"description": "Region is the name of the region where the Subnetwork resides.",
"type": "string"
},
"secondaryCidrBlocks": {
"additionalProperties": {
"type": "string"
},
"description": "SecondaryCidrBlocks defines secondary CIDR ranges,\nfrom which secondary IP ranges of a VM may be allocated",
"type": "object"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
},
"project": {
"description": "Project is the name of the project to deploy the cluster to.",
"type": "string"
},
"region": {
"description": "The GCP Region the cluster lives in.",
"type": "string"
},
"resourceManagerTags": {
"description": "ResourceManagerTags is an optional set of tags to apply to GCP resources managed\nby the GCP provider. GCP supports a maximum of 50 tags per resource.",
"items": {
"description": "ResourceManagerTag is a tag to apply to GCP resources managed by the GCP provider.",
"properties": {
"key": {
"description": "Key is the key part of the tag. A tag key can have a maximum of 63 characters and cannot\nbe empty. Tag key must begin and end with an alphanumeric character, and must contain\nonly uppercase, lowercase alphanumeric characters, and the following special\ncharacters `._-`.",
"maxLength": 63,
"minLength": 1,
"pattern": "^[a-zA-Z0-9]([0-9A-Za-z_.-]{0,61}[a-zA-Z0-9])?$",
"type": "string"
},
"parentID": {
"description": "ParentID is the ID of the hierarchical resource where the tags are defined\ne.g. at the Organization or the Project level. To find the Organization or Project ID ref\nhttps://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id\nhttps://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects\nAn OrganizationID must consist of decimal numbers, and cannot have leading zeroes.\nA ProjectID must be 6 to 30 characters in length, can only contain lowercase letters,\nnumbers, and hyphens, and must start with a letter, and cannot end with a hyphen.",
"maxLength": 32,
"minLength": 1,
"pattern": "(^[1-9][0-9]{0,31}$)|(^[a-z][a-z0-9-]{4,28}[a-z0-9]$)",
"type": "string"
},
"value": {
"description": "Value is the value part of the tag. A tag value can have a maximum of 63 characters and\ncannot be empty. Tag value must begin and end with an alphanumeric character, and must\ncontain only uppercase, lowercase alphanumeric characters, and the following special\ncharacters `_-.@%=+:,*#&(){}[]` and spaces.",
"maxLength": 63,
"minLength": 1,
"pattern": "^[a-zA-Z0-9]([0-9A-Za-z_.@%=+:,*#&()\\[\\]{}\\-\\s]{0,61}[a-zA-Z0-9])?$",
"type": "string"
}
},
"required": [
"key",
"parentID",
"value"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
}
},
"required": [
"project",
"region"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"spec"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"template"
],
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}