This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
main.tf
92 lines (87 loc) · 2.02 KB
/
main.tf
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
provider "gardener" {
kube_file = "${file("<my-gardener-service-account-kubeconfig>")}"
/*kube_file =<<-EOT
kind: Config
clusters:
- cluster:
certificate-authority-data: >-
<certificate-authority-data>
server: "https://gardener.garden.canary.k8s.ondemand.com"
name: garden
users:
- user:
token: >-
<token>
name: robot
contexts:
- context:
cluster: garden
user: robot
namespace: garden-<profile>
name: garden-<profile>-robot
current-context: garden-<profile>-robot
EOT*/
}
resource "gardener_shoot" "test_cluster" {
metadata {
name = "test-cluster"
namespace = "garden-<profile>"
}
spec {
cloud_profile_name = "az"
secret_binding_name = "<secret_binding>"
purpose = "evaluation"
networking {
nodes = "10.250.0.0/19"
pods= "100.96.0.0/11"
services= "100.64.0.0/13"
type= "calico"
}
maintenance {
auto_update{
kubernetes_version = true
machine_image_version = true
}
time_window {
begin = "030000+0000"
end = "040000+0000"
}
}
provider {
type = "azure"
infrastructure_config {
azure {
networks {
vnet {
cidr = "10.250.0.0/16"
}
workers = "10.250.0.0/19"
# service_endpoints = ["microsoft.test"]
}
}
}
worker {
max_surge = 1
max_unavailable = 0
maximum = 2
minimum = 2
volume {
size = "50Gi"
type = "Standard_LRS"
}
name = "cpu-worker"
machine {
image {
name = "coreos"
version = "2303.3.0"
}
type = "Standard_A4_v2"
}
}
}
region = "westeurope"
kubernetes {
version = "1.15.4"
}
}
}