-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfargate.tf
45 lines (39 loc) · 1.19 KB
/
fargate.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
resource "aws_eks_fargate_profile" "kube_system" {
cluster_name = aws_eks_cluster.eks_cluster.name
fargate_profile_name = "kube-system"
pod_execution_role_arn = aws_iam_role.eks_fargate_role.arn
subnet_ids = [
aws_subnet.private_subnet_1a.id,
aws_subnet.private_subnet_1b.id,
aws_subnet.private_subnet_1c.id
]
selector {
namespace = "kube-system"
}
}
resource "aws_eks_fargate_profile" "prometheus" {
cluster_name = aws_eks_cluster.eks_cluster.name
fargate_profile_name = "prometheus"
pod_execution_role_arn = aws_iam_role.eks_fargate_role.arn
subnet_ids = [
aws_subnet.private_subnet_1a.id,
aws_subnet.private_subnet_1b.id,
aws_subnet.private_subnet_1c.id
]
selector {
namespace = "prometheus"
}
}
resource "aws_eks_fargate_profile" "cert_manager" {
cluster_name = aws_eks_cluster.eks_cluster.name
fargate_profile_name = "cert-manager"
pod_execution_role_arn = aws_iam_role.eks_fargate_role.arn
subnet_ids = [
aws_subnet.private_subnet_1a.id,
aws_subnet.private_subnet_1b.id,
aws_subnet.private_subnet_1c.id
]
selector {
namespace = "cert-manager"
}
}