-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.forms.yml
562 lines (547 loc) · 18.8 KB
/
.forms.yml
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
version: "2"
use_cases:
- name: azure-aks
sections:
- name: Cloud Provider
groups:
- name: Access
technologies: [pipeline]
vars:
- name: "Azure Subscription ID"
description: "Azure subscription ID to use for Terraform."
key: azure_subscription_id
widget: cy_cred
type: string
default: "((azure_admin.subscription_id))"
- name: "Azure Tenant ID"
description: "Azure Tenant ID to use for Terraform."
key: azure_tenant_id
widget: cy_cred
type: string
default: "((azure_admin.tenant_id))"
- name: "Azure Client ID"
description: "Azure Client ID to use for Terraform."
key: azure_client_id
widget: cy_cred
type: string
default: "((azure_admin.client_id))"
- name: "Azure Client Secret"
description: "Azure Client Secret to use for Terraform."
key: azure_client_secret
widget: cy_cred
type: string
default: "((azure_admin.client_secret))"
- name: "Azure Location"
description: "Azure location to use for Terraform."
key: azure_location
widget: auto_complete
type: string
values: ["North Europe","West Europe","France Central","France South"]
default: "West Europe"
- name: "Azure Resource Group of the Storage Account"
description: "Azure Resource Group of the Storage Account to use to store terraform remote state file."
key: terraform_resource_group_name
widget: simple_text
type: string
default: ($ organization_canonical $)-terraform
- name: "Azure Storage Account name"
description: "Azure Storage Account name to use to store terraform remote state file."
key: terraform_storage_account_name
widget: cy_cred
type: string
default: ((azure_storage_aks.account_name))
- name: "Azure Storage Account key"
description: "Azure Storage Account key to use to store terraform remote state file."
key: terraform_storage_access_key
widget: cy_cred
type: string
default: ((azure_storage_aks.access_key))
- name: "Azure Storage container name"
description: "Azure Storage container name to store terraform remote state file."
key: terraform_storage_container_name
widget: simple_text
type: string
default: ($ organization_canonical $)
- name: "Azure Storage container path"
description: "Azure Storage container path to store terraform remote state file."
key: terraform_storage_container_path
widget: simple_text
type: string
default: ($ project $)/($ environment $)
- name: "Client ID for the Service Principal"
description: "Client ID for the Service Principal used by the AKS cluster"
key: aks_service_principal_client_id
widget: cy_cred
type: string
default: ((custom_($ project $)-($ environment $)-sp.client_id))
- name: "Client Secret for the Service Principal"
description: "Client Secret for the Service Principal used by the AKS cluster."
key: aks_service_principal_client_secret
widget: cy_cred
type: string
default: ((custom_($ project $)-($ environment $)-sp.client_secret))
- name: Infra
groups:
- name: Config
technologies: [terraform]
vars:
- name: "Resource Group Name"
description: "Resource Group Name to use for the AKS Cluster"
key: module.config.resource_group_name
widget: simple_text
type: string
default: "($ project $)-($ environment $)-aks"
- name: "Cluster name"
description: "AKS Cluster name"
key: module.config.cluster_name
widget: simple_text
type: string
default: "($ project $)-($ environment $)"
- name: vpc
technologies: [terraform]
vars:
- name: "Address Space"
description: "The virtual network address space."
key: module.vpc.address_space
widget: simple_text
type: string
default: "10.8.0.0/14"
- name: "Private subnets"
description: "The private subnets cidr for the VPC."
key: module.vpc.subnets
widget: text_area
type: map
default:
"nodes": "10.8.0.0/16"
"pods": "10.9.0.0/16"
"loadbalancers": "10.11.0.0/16"
# type: map
# default:
# { "nodes" = "10.8.0.0/16", "pods" = "10.9.0.0/16", "loadbalancers" = "10.11.0.0/16",}
- name: aks
technologies: [terraform]
vars:
- name: "AKS cluster network plugin"
description: "AKS cluster network plugin to use, can be either `azure` or `kubenet`."
key: module.aks.network_plugin
widget: auto_complete
type: string
default: "azure"
values:
- "azure"
- "kubenet"
- name: "AKS cluster pod CIDR to use"
description: "AKS cluster pod CIDR to use, required if `network_plugin = kubenet`."
key: module.aks.network_pod_cidr
widget: text_area
type: string
default: "10.9.0.0/16"
- name: "AKS cluster pod CIDR to use"
description: "AKS cluster service CIDR to use, required if `network_plugin = azure`."
key: module.aks.network_service_cidr
widget: text_area
type: string
default: "10.10.0.0/16"
- name: "AKS node name"
description: "AKS default nodes pool given name."
key: module.aks.node_pool_name
widget: simple_text
type: string
default: "default"
- name: "Node size"
description: "AKS default nodes virtualmachine size."
key: module.aks.node_size
widget: simple_text
type: string
default: "Standard_DS2_v2"
- name: "Node desired number"
description: "AKS default nodes desired count."
key: module.aks.node_count
widget: simple_text
type: string
default: "1"
required: true
- name: gcp-gke
sections:
- name: Cloud Provider
groups:
- name: Access
technologies: [pipeline]
vars:
- name: "GCP json credentials"
description: "GCP JSON for Terraform. See value format [here](https://docs.cycloid.io/advanced-guide/integrate-and-use-cycloid-credentials-manager.html#vault-in-the-pipeline)"
key: gcp_credentials_json
widget: cy_cred
type: string
default: "((gcp.json_key))"
- name: "GCP Project"
description: "Google Cloud Platform project to use for Terraform."
key: gcp_project
widget: simple_text
type: string
default: ($ organization_canonical $)
- name: "GCP region"
description: "Google Cloud Platform region to use for Terraform."
key: gcp_region
widget: auto_complete
type: string
values: ["europe-west1","europe-west2","europe-west3","europe-west4","europe-north1","europe-central2"]
default: europe-west1
- name: "Terraform storage bucket"
description: "Google Cloud Storage bucket name to store terraform remote state file."
key: terraform_storage_bucket_name
widget: simple_text
type: string
default: ($ organization_canonical $)-terraform-remote-state
- name: Infra
groups:
- name: Config
technologies: [terraform]
vars:
- name: "Cluster name"
description: "GKE Cluster Name."
key: module.config.cluster_name
widget: simple_text
type: string
default: "($ project $)-($ environment $)"
- name: VPC
technologies: [terraform]
vars:
- name: "VPC subnet CIDR"
description: "The CIDR of the VPC subnet."
key: module.vpc.subnet_cidr
widget: simple_text
type: string
default: "10.8.0.0/16"
- name: "Pods secondary range CIDR"
description: "The CIDR of the pods secondary range."
key: module.vpc.pods_cidr
widget: simple_text
type: string
default: "10.9.0.0/16"
- name: "Services secondary range CIDR"
description: "The CIDR of the services secondary range."
key: module.vpc.services_cidr
widget: simple_text
type: string
default: "10.10.0.0/16"
- name: GKE
technologies: [terraform]
vars:
- name: "Node Pools"
description: "GKE Cluster list of maps containing node pools to create."
key: module.gke.node_pools
widget: text_area
type: array
default:
[
{
name = "my-node-pool"
machine_type = "n1-standard-1"
image_type = "COS"
auto_repair = true
auto_upgrade = false
preemptible = false
autoscaling = true
initial_node_count = 1
min_count = 1
max_count = 1
local_ssd_count = 0
disk_size_gb = 100
disk_type = "pd-ssd"
},
]
- name: scaleway-kapsule
sections:
- name: Cloud Provider
groups:
- name: Access
technologies: [pipeline]
vars:
- name: "Scaleway project id"
description: "Scaleway project id where to create resources."
key: scw_project_id
widget: simple_text
type: string
required: true
- name: "Scaleway access key"
description: "Scaleway access key for Terraform."
key: scw_access_key
widget: cy_cred
type: string
default: "((scaleway.access_key))"
- name: "Scaleway secret key"
description: "Scaleway access key for Terraform."
key: scw_secret_key
widget: cy_cred
type: string
default: "((scaleway.secret_key))"
- name: "Scaleway organization ID"
description: "Scaleway organization ID for Terraform."
key: scw_organization_id
widget: cy_cred
type: string
default: "((scaleway.organization_id))"
- name: "Scaleway region"
description: Scaleway region to use for Terraform."
key: scw_default_region
widget: auto_complete
type: string
values: ["fr-par","nl-ams","pl-waw"]
default: fr-par
- name: "Terraform storage bucket"
description: "Object Storage Bucket name to store terraform remote state file."
key: terraform_storage_bucket_name
widget: simple_text
type: string
default: ($ organization_canonical $)-terraform-remote-state
- name: Infra
groups:
- name: Config
technologies: [terraform]
vars:
- name: "Cluster name"
description: "Kapsule Cluster Name."
key: module.config.cluster_name
widget: simple_text
type: string
default: "($ project $)-($ environment $)"
- name: kapsule
technologies: [terraform]
vars:
- name: "Cluster version"
description: "Kapsule cluster version."
key: module.kapsule.cluster_version
widget: simple_text
type: string
default: "1.27"
- name: "Container Network Interface"
description: "The Container Network Interface (CNI) for the Kubernetes cluster"
key: module.kapsule.cni
widget: auto_complete
type: string
default: "cilium"
values:
- "cilium"
- "calico"
- "weave"
- "flannel"
- name: "Kubernetes auto upgrade"
description: "Set to `true` to enable Kubernetes patch version auto upgrades."
key: module.kapsule.auto_upgrade
widget: switch
type: boolean
default: true
- name: "Maintenance window day"
description: "The day of the auto upgrade maintenance window"
key: module.kapsule.maintenance_window_day
widget: auto_complete
type: string
default: "tuesday"
values:
- "any"
- "monday"
- "tuesday"
- "wednesday"
- "thursday"
- "friday"
- "saturday"
- "sunday"
- name: "Maintenance window start hour"
description: "The start hour (UTC) of the 2-hour auto upgrade maintenance window (`0` to `23`)."
key: module.kapsule.maintenance_window_start_hour
widget: slider_range
type: integer
default: 5
values:
- 0
- 23
- name: node-pool
technologies: [terraform]
vars:
- name: "Node pool name"
description: "Kapsule node group given name."
key: module.node_pool.node_pool_name
widget: simple_text
type: string
default: "standard"
- name: "Node type"
description: "Type of instance to use for node servers."
key: module.node_pool.node_type
widget: auto_complete
type: string
default: "GP1-XS"
required: true
values:
- "GP1-XS"
- "GP1-S"
- "GP1-M"
- "GP1-L"
- "GP1-XL"
- name: "Node desired number"
description: "Desired number of node servers."
key: module.node_pool.node_count
widget: number
type: integer
default: 1
required: true
- name: "Enable auto scaling"
description: "Enables the autoscaling feature for this pool."
key: module.node_pool.enable_autoscaling
widget: switch
type: boolean
default: false
- name: "Minimum pool size"
description: "The minimum size of the pool, used by the autoscaling feature."
key: module.node_pool.node_autoscaling_min_size
widget: number
type: integer
default: 1
- name: "Maximum pool sizer"
description: " The maximum size of the pool, used by the autoscaling feature."
key: module.node_pool.node_autoscaling_max_size
widget: number
type: integer
default: 10
- name: "Enable auto healing"
description: "Enables the autohealing feature for this pool."
key: module.node_pool.enable_autohealing
widget: switch
type: boolean
default: true
- name: "Placement group ID"
description: "The placement group the nodes of the pool will be attached to."
key: module.node_pool.placement_group_id
widget: simple_text
type: string
default: ""
- name: "Extra tags"
description: "Dict of extra tags to add on the pool."
key: module.node_pool.extra_tags
widget: text_area
type: array
- name: scaleway-nodes
sections:
- name: Cloud Provider
groups:
- name: Access
technologies: [pipeline]
vars:
- name: "Scaleway project id"
description: "Scaleway project id where to create resources."
key: scw_project_id
widget: simple_text
type: string
required: true
- name: "Scaleway access key"
description: "Scaleway access key for Terraform."
key: scw_access_key
widget: cy_cred
type: string
default: "((scaleway.access_key))"
- name: "Scaleway secret key"
description: "Scaleway access key for Terraform."
key: scw_secret_key
widget: cy_cred
type: string
default: "((scaleway.secret_key))"
- name: "Scaleway organization ID"
description: "Scaleway organization ID for Terraform."
key: scw_organization_id
widget: cy_cred
type: string
default: "((scaleway.organization_id))"
- name: "Scaleway region"
description: Scaleway region to use for Terraform."
key: scw_default_region
widget: auto_complete
type: string
values: ["fr-par","nl-ams","pl-waw"]
default: fr-par
- name: "Terraform storage bucket"
description: "Object Storage Bucket name to store terraform remote state file."
key: terraform_storage_bucket_name
widget: simple_text
type: string
default: ($ organization_canonical $)-terraform-remote-state
- name: Infra
groups:
- name: Config
technologies: [terraform]
vars:
- name: "Cluster name"
description: "Kapsule Cluster Name."
key: module.config.cluster_name
widget: simple_text
type: string
default: "($ project $)-($ environment $)"
- name: node-pool
technologies: [terraform]
vars:
- name: "Kubernetes cluster id"
description: "The Kubernetes id the nodes of the pool will be attached to."
key: module.node_pool.cluster_id
widget: simple_text
type: string
default: "data.terraform_remote_state.kubernetes-infra.outputs.cluster_id"
- name: "Node pool name"
description: "Kapsule node group given name."
key: module.node_pool.node_pool_name
widget: simple_text
type: string
default: "standard"
- name: "Node type"
description: "Type of instance to use for node servers."
key: module.node_pool.node_type
widget: auto_complete
type: string
default: "GP1-XS"
required: true
values:
- "GP1-XS"
- "GP1-S"
- "GP1-M"
- "GP1-L"
- "GP1-XL"
- name: "Node desired number"
description: "Desired number of node servers."
key: module.node_pool.node_count
widget: number
type: integer
default: 1
required: true
- name: "Enable auto scaling"
description: "Enables the autoscaling feature for this pool."
key: module.node_pool.enable_autoscaling
widget: switch
type: boolean
default: false
- name: "Minimum pool size"
description: "The minimum size of the pool, used by the autoscaling feature."
key: module.node_pool.node_autoscaling_min_size
widget: number
type: integer
default: 1
- name: "Maximum pool sizer"
description: " The maximum size of the pool, used by the autoscaling feature."
key: module.node_pool.node_autoscaling_max_size
widget: number
type: integer
default: 10
- name: "Enable auto healing"
description: "Enables the autohealing feature for this pool."
key: module.node_pool.enable_autohealing
widget: switch
type: boolean
default: true
- name: "Placement group ID"
description: "The placement group the nodes of the pool will be attached to."
key: module.node_pool.placement_group_id
widget: simple_text
type: string
default: ""
- name: "Extra tags"
description: "Dict of extra tags to add on the pool."
key: module.node_pool.extra_tags
widget: text_area
type: array