-
Notifications
You must be signed in to change notification settings - Fork 1
/
sftpgo.tf
39 lines (36 loc) · 1.13 KB
/
sftpgo.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
module "sftpgo-terraform-k8s-namespace" {
count = var.sftpgo ? 1 : 0
source = "../modules/terraform-k8s-namespace/"
name = "sftpgo"
}
module "sftpgo-terraform-helm" {
count = var.sftpgo ? 1 : 0
source = "../modules/terraform-helm/"
deployment_name = "sftpgo"
deployment_namespace = module.sftpgo-terraform-k8s-namespace[0].namespace
chart = "sftpgo"
repository = "https://charts.sagikazarmark.dev"
chart_version = var.sftpgo-config["chart_version"]
values_yaml = <<-EOF
podAnnotations: {
"cluster-autoscaler.kubernetes.io/safe-to-evict": "true"
}
ui:
ingress:
enabled: true
annotations:
ingress.kubernetes.io/ssl-redirect: "false"
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod
acme.cert-manager.io/http01-edit-in-place: "true"
hosts:
- host: "sftpgo.${var.google_domain_name}"
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: sftpgo-tls
hosts:
- "sftpgo.${var.google_domain_name}"
EOF
}