forked from servicemeshinterface/smi-controller-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.hcl
More file actions
64 lines (49 loc) · 1.16 KB
/
controller.hcl
File metadata and controls
64 lines (49 loc) · 1.16 KB
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
variable "smi_controller_k8s_cluster" {
default = "dc1"
}
variable "smi_controller_k8s_network" {
default = "dc1"
}
variable "smi_controller_enabled" {
default = false
}
variable "smi_controller_webhook_enabled" {
default = false
}
variable "smi_controller_webhook_port" {
default = 9443
}
variable "smi_controller_namespace" {
default = "shipyard"
}
variable "smi_controller_additional_dns" {
default = "smi-webhook.shipyard.svc"
}
variable "smi_controller_helm_chart" {
default = "${file_dir()}/../helm/smi-controller"
}
variable "install_helm_chart" {
default = true
}
module "smi-controller" {
disabled = (var.install_helm_chart == false)
#source = "/home/nicj/go/src/github.com/shipyard-run/blueprints/modules/kubernetes-smi-controller"
source = "github.com/shipyard-run/blueprints/modules/kubernetes-smi-controller"
}
# Create an ingress which exposes the locally running webhook from kubernetes
ingress "smi-webhook" {
source {
driver = "k8s"
config {
cluster = "k8s_cluster.dc1"
port = 9443
}
}
destination {
driver = "local"
config {
address = "localhost"
port = 9443
}
}
}