This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
packet-cluster.lokocfg.envsubst
158 lines (118 loc) · 3.1 KB
/
packet-cluster.lokocfg.envsubst
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
cluster "packet" {
asset_dir = pathexpand("~/lokoctl-assets")
cluster_name = "$CLUSTER_ID"
controller_count = 1
dns {
zone = "$AWS_DNS_ZONE"
provider {
route53 {
zone_id = "$AWS_DNS_ZONE_ID"
}
}
}
facility = "$PACKET_LOCATION"
project_id = "$PACKET_PROJECT_ID"
ssh_pubkeys = ["$PUB_KEY"]
management_cidrs = ["0.0.0.0/0"]
node_private_cidr = "10.0.0.0/8"
worker_pool "pool-1" {
count = 2
node_type = "c2.medium.x86"
labels = "testing.io=yes,roleofnode=testing"
}
}
component "openebs-operator" {}
# openebs-storage-class component should always be the last to be installed
# pending when https://github.com/kinvolk/lokoctl/issues/374 is fixed
# because when the discovery failure for creating StoragePoolClaim happens,
# lokoctl install errors out and moves on with running the tests
# causing subsequent components below this to be skipped.
component "openebs-storage-class" {
storage-class "openebs-test-sc" {
replica_count = 1
default = true
}
}
component "prometheus-operator" {
grafana_admin_password = "admin"
}
component "contour" {
ingress_hosts = ["dex.$CLUSTER_ID.$AWS_DNS_ZONE","gangway.$CLUSTER_ID.$AWS_DNS_ZONE"]
enable_monitoring = true
}
component "metallb" {
address_pools = {
default = ["10.1.1.1/32"]
}
service_monitor = true
}
component "metrics-server" {}
component "cert-manager" {
email = "$EMAIL"
service_monitor = true
}
component "external-dns"{
policy = "sync"
owner_id = "$CLUSTER_ID"
aws {
zone_id = "$AWS_DNS_ZONE_ID"
aws_access_key_id = "$AWS_ACCESS_KEY_ID"
aws_secret_access_key = "$AWS_SECRET_ACCESS_KEY"
}
service_monitor = true
}
component "dex" {
ingress_host = "$DEX_INGRESS_HOST"
issuer_host = "$ISSUER_HOST"
connector "github" {
id = "github"
name = "GitHub"
config {
client_id = "$GITHUB_CLIENT_ID"
client_secret = "$GITHUB_CLIENT_SECRET"
redirect_uri = "$REDIRECT_URI"
team_name_field = "slug"
org {
name = "kinvolk"
teams = [
"lokomotive-developers",
]
}
}
}
static_client {
name = "gangway"
id = "$DEX_STATIC_CLIENT_GANGWAY_ID"
secret = "$DEX_STATIC_CLIENT_GANGWAY_SECRET"
redirect_uris = ["$GANGWAY_REDIRECT_URL"]
}
}
component "gangway" {
cluster_name = "$CLUSTER_ID"
ingress_host = "$GANGWAY_INGRESS_HOST"
session_key = "$GANGWAY_SESSION_KEY"
api_server_url = "$API_SERVER_URL"
authorize_url = "$AUTHORIZE_URL"
token_url = "$TOKEN_URL"
client_id = "$DEX_STATIC_CLIENT_GANGWAY_ID"
client_secret = "$DEX_STATIC_CLIENT_GANGWAY_SECRET"
redirect_url = "$GANGWAY_REDIRECT_URL"
}
component "rook" {
enable_monitoring = true
}
component "flatcar-linux-update-operator" {}
component "cluster-autoscaler" {
cluster_name = "$CLUSTER_ID"
worker_pool = "pool-1"
min_workers = 2
max_workers = 2
packet {
project_id = "$PACKET_PROJECT_ID"
facility = "$PACKET_LOCATION"
}
service_monitor = true
}
component "httpbin" {
ingress_host = "httpbin.$CLUSTER_ID.$AWS_DNS_ZONE"
}