forked from digitalocean/mastodon-on-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
174 lines (143 loc) · 4.22 KB
/
variables.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
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
# ===================== DOKS CONFIG VARS ======================= #
variable "doks_cluster_name_prefix" {
type = string
default = "mastodon-k8s"
description = "DOKS cluster name prefix value (a random suffix is appended automatically)"
}
variable "doks_k8s_version" {
type = string
default = "1.25"
description = "DOKS Kubernetes version"
}
variable "doks_cluster_region" {
type = string
default = "nyc1"
description = "DOKS region name"
}
variable "doks_primary_node_pool" {
type = map
default = {
name = "mastodon-default"
node_count = 2
size = "s-2vcpu-4gb"
}
description = "DOKS cluster primary node pool configuration"
}
variable "doks_additional_node_pools" {
type = map
default = {}
description = "DOKS cluster additional node pool configuration"
}
# =============== K8S CONFIG VARS ================== #
variable "mastodon_k8s_namespace" {
type = string
default = "mastodon"
description = "Kubernetes namespace to use for the Mastodon Helm release"
}
variable "mastodon_pgsql_auth_secret_name" {
type = string
default = "pgsql-auth"
description = "Kubernetes secret name containing PostgreSQL password"
}
variable "mastodon_redis_auth_secret_name" {
type = string
default = "redis-auth"
description = "Kubernetes secret name containing Redis password"
}
variable "mastodon_web_domain" {
type = string
description = "Sets the domain name for your Mastodon instance (REQUIRED)"
}
# =============== EXTERNAL POSTGRES CONFIG VARS (DO MANAGED) ================= #
variable "enable_external_postgresql" {
type = bool
default = false
description = "Enable external PostgreSQL cluster (DO managed)"
}
variable "pg_cluster_name" {
type = string
default = "pg-mastodon"
description = "DO managed PostgreSQL cluster name"
}
variable "pg_cluster_version" {
type = string
default = "14"
description = "DO managed PostgreSQL engine version"
}
variable "pg_cluster_region" {
type = string
default = "nyc1"
description = "DO managed PostgreSQL cluster region"
}
variable "pg_cluster_size" {
type = string
default = "db-s-1vcpu-1gb"
description = "DO managed PostgreSQL cluster worker nodes size"
}
variable "pg_cluster_node_count" {
type = number
default = 1
description = "DO managed PostgreSQL cluster node count"
}
variable "pg_cluster_db_name" {
type = string
default = "mastodon"
description = "DO managed PostgreSQL cluster database name"
}
variable "pg_cluster_db_user" {
type = string
default = "mastodon"
description = "DO managed PostgreSQL cluster database user"
}
variable "pg_cluster_connection_pool_size" {
type = number
default = 20
description = "PgBouncer connection pool size"
}
# =============== EXTERNAL REDIS CONFIG VARS (DO MANAGED) ================= #
variable "enable_external_redis" {
type = bool
default = false
description = "Enable external Redis cluster (DO managed)"
}
variable "redis_cluster_name" {
type = string
default = "redis-mastodon"
description = "DO managed Redis cluster name"
}
variable "redis_cluster_version" {
type = string
default = "7"
description = "DO managed Redis engine version"
}
variable "redis_cluster_region" {
type = string
default = "nyc1"
description = "DO managed Redis cluster region"
}
variable "redis_cluster_size" {
type = string
default = "db-s-1vcpu-1gb"
description = "DO managed Redis cluster worker nodes size"
}
variable "redis_cluster_node_count" {
type = number
default = 1
description = "DO managed Redis cluster node count"
}
# ====================== EXTERNAL S3 CONFIG VARS (DO MANAGED) ==================== #
variable "enable_external_s3" {
type = bool
default = false
description = "Enable external S3 for Mastodon persistent data (DO Spaces)"
}
variable "s3_bucket_name" {
type = string
default = "mastodon-st"
description = "Mastodon DO Spaces S3 bucket name (must be unique)"
}
variable "s3_bucket_region" {
type = string
default = "nyc3"
description = "Mastodon DO Spaces S3 bucket region"
}