-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboathouse.tf
56 lines (45 loc) · 1.13 KB
/
boathouse.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
resource "kubernetes_namespace" "boathouse_system" {
metadata {
name = "boathouse-system"
labels = {
"namespace.statcan.gc.ca/purpose" = "system"
}
}
}
module "namespace_boathouse_system" {
source = "git::https://github.com/canada-ca-terraform-modules/terraform-kubernetes-namespace.git?ref=v2.2.0"
name = kubernetes_namespace.boathouse_system.id
namespace_admins = {
users = []
groups = ["XXXX"]
}
# CI/CD
ci_name = "ci"
# Image Pull Secret
enable_kubernetes_secret = 0
# Dependencies
dependencies = []
}
##
## Deploy Boathouse
##
resource "helm_release" "boathouse" {
name = "boathouse"
repository = "./charts"
chart = "boathouse"
version = "0.1.2"
timeout = 3600
namespace = kubernetes_namespace.boathouse_system.id
values = [<<EOF
# Default values for boathouse.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
image:
repository: "k8scc01covidacr.azurecr.io/boathouse"
tag: "fcbbab6389e81adf8644a94044d324780e17f2fa"
pullPolicy: Always
imagePullSecrets:
- name: "k8scc01covidacr-registry-connection"
EOF
]
}