Skip to content

Instantly share code, notes, and snippets.

@Pelirrojo
Created April 21, 2023 16:47
Show Gist options
  • Save Pelirrojo/f375ea0b8c163f437bf74862c238189f to your computer and use it in GitHub Desktop.
Save Pelirrojo/f375ea0b8c163f437bf74862c238189f to your computer and use it in GitHub Desktop.
EKS Blueprints Example 2
# Complete file at: https://github.com/Cloud-DevOps-Labs/kubernetes-in-aws-the-easy-way/blob/workshop/IaC/main.tf
################################################################################
# Kubernetes addons
################################################################################
module "kubernetes_addons" {
source = "github.com/aws-ia/terraform-aws-eks-blueprints?ref=v4.28.0/modules/kubernetes-addons"
eks_cluster_id = module.eks_blueprints.eks_cluster_id
#---------------------------------------------------------------
# ARGO CD ADD-ON
#---------------------------------------------------------------
enable_argocd = true
argocd_manage_add_ons = true # Indicates that ArgoCD is responsible for managing/deploying Add-ons.
argocd_applications = {
addons = local.addon_application
workloads = local.workload_application # Uncomment to load workloads for partial repo
}
argocd_helm_config = {
set = [
{
name = "server.service.type"
value = "LoadBalancer"
}
]
}
#---------------------------------------------------------------
# ADD-ONS - You can add additional addons here
# https://aws-ia.github.io/terraform-aws-eks-blueprints/add-ons/
#---------------------------------------------------------------
enable_aws_load_balancer_controller = true
enable_amazon_eks_aws_ebs_csi_driver = true
enable_aws_for_fluentbit = true
enable_metrics_server = true
#enable_argo_rollouts = true
enable_karpenter = true
#enable_kubecost = true
#enable_kube_prometheus_stack = true
karpenter_node_iam_instance_profile = module.karpenter.instance_profile_name
karpenter_enable_spot_termination_handling = true
#karpenter_sqs_queue_arn = module.karpenter.queue_arn
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment