-
Notifications
You must be signed in to change notification settings - Fork 0
/
eks-addon.tf
84 lines (70 loc) · 2.04 KB
/
eks-addon.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
resource "aws_eks_addon" "adot" {
cluster_name = aws_eks_cluster.default.name
addon_name = "adot"
addon_version = data.aws_eks_addon_version.adot.version
service_account_role_arn = var.eks_addons_arn
tags = {
App = "adot"
Service = "eks-addon"
}
depends_on = [
aws_eks_cluster.default,
data.aws_eks_addon_version.adot
]
}
resource "aws_eks_addon" "kube_proxy" {
cluster_name = aws_eks_cluster.default.name
addon_name = "kube-proxy"
addon_version = data.aws_eks_addon_version.kube_proxy.version
service_account_role_arn = var.eks_addons_arn
tags = {
App = "kube-proxy"
Service = "eks-addon"
}
depends_on = [
aws_eks_cluster.default,
data.aws_eks_addon_version.kube_proxy
]
}
resource "aws_eks_addon" "vpc_cni" {
cluster_name = aws_eks_cluster.default.name
addon_name = "vpc-cni"
addon_version = data.aws_eks_addon_version.vpc_cni.version
service_account_role_arn = var.eks_addons_arn
tags = {
App = "vpc-cni"
Service = "eks-addon"
}
depends_on = [
aws_eks_cluster.default,
data.aws_eks_addon_version.vpc_cni
]
}
resource "aws_eks_addon" "coredns" {
cluster_name = aws_eks_cluster.default.name
addon_name = "coredns"
addon_version = data.aws_eks_addon_version.coredns.version
service_account_role_arn = var.eks_addons_arn
tags = {
App = "coredns"
Service = "eks-addon"
}
depends_on = [
aws_eks_cluster.default,
data.aws_eks_addon_version.coredns
]
}
resource "aws_eks_addon" "csi_driver" {
cluster_name = aws_eks_cluster.default.name
addon_name = "aws-ebs-csi-driver"
addon_version = data.aws_eks_addon_version.csi_driver.version
service_account_role_arn = var.eks_addons_arn
tags = {
App = "ebs-csi-driver"
Service = "eks-addon"
}
depends_on = [
aws_eks_cluster.default,
data.aws_eks_addon_version.csi_driver
]
}