forked from SPHTech-Platform/terraform-aws-eks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
addons.tf
41 lines (33 loc) · 1 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
# Need IRSA
# See https://github.com/terraform-aws-modules/terraform-aws-iam/blob/master/examples/iam-role-for-service-accounts-eks/main.tf
resource "aws_eks_addon" "kube_proxy" {
cluster_name = module.eks.cluster_id
addon_name = "kube-proxy"
resolve_conflicts = "OVERWRITE"
}
resource "aws_eks_addon" "vpc_cni" {
depends_on = [
aws_eks_addon.kube_proxy
]
cluster_name = module.eks.cluster_id
addon_name = "vpc-cni"
resolve_conflicts = "NONE"
service_account_role_arn = module.vpc_cni_irsa_role.iam_role_arn
}
resource "aws_eks_addon" "coredns" {
depends_on = [
aws_eks_addon.vpc_cni
]
cluster_name = module.eks.cluster_id
addon_name = "coredns"
resolve_conflicts = "NONE"
}
resource "aws_eks_addon" "ebs_csi" {
depends_on = [
aws_eks_addon.vpc_cni
]
cluster_name = module.eks.cluster_id
addon_name = "aws-ebs-csi-driver"
resolve_conflicts = "NONE"
service_account_role_arn = module.ebs_csi_irsa_role.iam_role_arn
}