-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalico.tf
More file actions
29 lines (26 loc) · 904 Bytes
/
calico.tf
File metadata and controls
29 lines (26 loc) · 904 Bytes
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
################################################################################
# Calico Network Policy Engine via Helm
################################################################################
# Installs Calico using the Tigera operator for network policy enforcement
# on Amazon VPC CNI. This provides network policies without replacing the CNI.
resource "helm_release" "tigera_operator" {
count = var.enable_calico ? 1 : 0
name = "tigera-operator"
repository = "https://docs.tigera.io/calico/charts"
chart = "tigera-operator"
namespace = "tigera-operator"
create_namespace = true
version = "v3.28.2"
values = [yamlencode({
installation = {
enabled = true
kubernetesProvider = "EKS"
cni = {
type = "AmazonVPC"
}
calicoNetwork = {
bgp = "Disabled"
}
}
})]
}