-
Notifications
You must be signed in to change notification settings - Fork 44
/
addons.tf
51 lines (38 loc) · 1.04 KB
/
addons.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
resource "aws_eks_addon" "cni" {
cluster_name = aws_eks_cluster.main.name
addon_name = "vpc-cni"
addon_version = var.addon_cni_version
resolve_conflicts = "OVERWRITE"
depends_on = [
kubernetes_config_map.aws-auth
]
}
resource "aws_eks_addon" "coredns" {
cluster_name = aws_eks_cluster.main.name
addon_name = "coredns"
addon_version = var.addon_coredns_version
resolve_conflicts = "OVERWRITE"
depends_on = [
aws_eks_node_group.main,
kubernetes_config_map.aws-auth
]
}
resource "aws_eks_addon" "kubeproxy" {
cluster_name = aws_eks_cluster.main.name
addon_name = "kube-proxy"
addon_version = var.addon_kubeproxy_version
resolve_conflicts = "OVERWRITE"
depends_on = [
kubernetes_config_map.aws-auth
]
}
resource "aws_eks_addon" "csi_driver" {
cluster_name = aws_eks_cluster.main.name
addon_name = "aws-ebs-csi-driver"
addon_version = var.addon_csi_version
resolve_conflicts = "OVERWRITE"
depends_on = [
aws_eks_node_group.main,
kubernetes_config_map.aws-auth
]
}