-
Notifications
You must be signed in to change notification settings - Fork 3
/
kubernetes_addons.tf
57 lines (51 loc) · 2.25 KB
/
kubernetes_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
52
53
54
55
56
57
module "eks_blueprints_kubernetes_addons" {
# source = "github.com/aws-ia/terraform-aws-eks-blueprints//modules/kubernetes-addons"
source = "github.com/aws-ia/terraform-aws-eks-blueprints//modules/kubernetes-addons?ref=v4.32.1"
eks_cluster_id = module.eks_blueprints.cluster_id
eks_cluster_endpoint = module.eks_blueprints.cluster_endpoint
eks_oidc_provider = module.eks_blueprints.oidc_provider
eks_cluster_version = module.eks_blueprints.cluster_version
# EKS Managed Add-ons
enable_amazon_eks_coredns = true
amazon_eks_coredns_config = {
most_recent = true
}
enable_amazon_eks_kube_proxy = true
amazon_eks_kube_proxy_config = {
most_recent = true
}
enable_amazon_eks_vpc_cni = true
amazon_eks_vpc_cni_config = {
most_recent = true
}
enable_amazon_eks_aws_ebs_csi_driver = true
amazon_eks_aws_ebs_csi_driver_config = {
most_recent = true
}
#K8s Add-ons
enable_metrics_server = true
enable_karpenter = true
enable_aws_cloudwatch_metrics = true
enable_aws_efs_csi_driver = true
enable_aws_node_termination_handler = true
enable_tetrate_istio = true
enable_calico = true
enable_kubecost = true
## How do you access the dashbaord?
## https://aws-ia.github.io/terraform-aws-eks-blueprints/main/add-ons/kubernetes-dashboard/
# enable_kubernetes_dashboard = true
# kubernetes_dashboard_helm_config = {
# # (Required) Release name.
# name = "kubernetes-dashboard"
# # (Optional) Repository URL where to locate the requested chart.
# repository = "https://kubernetes.github.io/dashboard/"
# # (Required) Chart name to be installed.
# chart = "kubernetes-dashboard"
# # version = "5.7.0"
# namespace = "kube-system"
# }
# TODO - kube state metrics is not installing with the following error:
# An argument named "enable_kube_state_metrics" is not expected here
enable_kube_state_metrics = true
# It appears that this add-on is currently disabled and the blueprint docs have yet to be (annoyingly) corrected. Here is the closed issue: https://github.com/aws-ia/terraform-aws-eks-blueprints/issues/464#issuecomment-1107485356
}