Skip to content

Commit

Permalink
docs(eks): update example with new module versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lentidas committed Mar 15, 2024
1 parent 6894981 commit 2d9b340
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
1 change: 1 addition & 0 deletions examples/eks/apps.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module "helloworld_apps" {
cluster:
name: "${local.cluster_name}"
domain: "${local.base_domain}"
subdomain: "${local.subdomain}"
issuer: "${local.cluster_issuer}"
apps:
traefik_dashboard: false
Expand Down
4 changes: 2 additions & 2 deletions examples/eks/csi_drivers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "aws_efs_mount_target" "eks" {
}

module "efs" {
source = "git::https://github.com/camptocamp/devops-stack-module-efs-csi-driver.git?ref=v3.0.0"
source = "git::https://github.com/camptocamp/devops-stack-module-efs-csi-driver.git?ref=v3.1.0"

cluster_name = local.cluster_name
argocd_project = module.eks.cluster_name
Expand All @@ -52,7 +52,7 @@ module "efs" {
}

module "ebs" {
source = "git::https://github.com/camptocamp/devops-stack-module-ebs-csi-driver.git?ref=v3.0.0"
source = "git::https://github.com/camptocamp/devops-stack-module-ebs-csi-driver.git?ref=v3.1.0"

cluster_name = local.cluster_name
argocd_project = module.eks.cluster_name
Expand Down
3 changes: 2 additions & 1 deletion examples/eks/locals.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
locals {
kubernetes_version = "1.28"
kubernetes_version = "1.29"
cluster_name = "YOUR_CLUSTER_NAME" # Must be unique for each DevOps Stack deployment in a single AWS account. Contains only alphanumeric and hyphens.
base_domain = "your.domain.here" # Must match a Route 53 zone in the AWS account where you are deploying the DevOps Stack.
subdomain = "apps"
cluster_issuer = module.cert-manager.cluster_issuers.staging
letsencrypt_issuer_email = "YOUR_EMAIL_ADDRESS"
enable_service_monitor = false # Can be enabled after the first bootstrap.
Expand Down
28 changes: 16 additions & 12 deletions examples/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ module "vpc" {
}

module "eks" {
source = "git::https://github.com/camptocamp/devops-stack-module-cluster-eks.git?ref=v3.0.1"
source = "git::https://github.com/camptocamp/devops-stack-module-cluster-eks.git?ref=v3.1.0"

cluster_name = local.cluster_name
kubernetes_version = local.kubernetes_version
base_domain = local.base_domain
subdomain = local.subdomain

vpc_id = module.vpc.vpc_id
private_subnet_ids = module.vpc.private_subnets
Expand All @@ -44,7 +45,7 @@ module "eks" {
max_size = 3
desired_size = 3
nlbs_attachment = true
disk_size = 100
disk_size = 50
labels = {
"devops-stack.io/nodepool" = "main"
}
Expand All @@ -55,10 +56,11 @@ module "eks" {
}

module "oidc" {
source = "git::https://github.com/camptocamp/devops-stack-module-oidc-aws-cognito.git?ref=v1.0.1"
source = "git::https://github.com/camptocamp/devops-stack-module-oidc-aws-cognito.git?ref=v1.1.0"

cluster_name = module.eks.cluster_name
base_domain = module.eks.base_domain
subdomain = local.subdomain

create_pool = true

Expand All @@ -73,7 +75,7 @@ module "oidc" {
}

module "argocd_bootstrap" {
source = "git::https://github.com/camptocamp/devops-stack-module-argocd.git//bootstrap?ref=v4.0.0"
source = "git::https://github.com/camptocamp/devops-stack-module-argocd.git//bootstrap?ref=v4.3.0"

argocd_projects = {
"${module.eks.cluster_name}" = {
Expand All @@ -97,10 +99,8 @@ module "metrics-server" {
}

module "traefik" {
source = "git::https://github.com/camptocamp/devops-stack-module-traefik.git//eks?ref=v5.0.0"
source = "git::https://github.com/camptocamp/devops-stack-module-traefik.git//eks?ref=v6.2.0"

cluster_name = module.eks.cluster_name
base_domain = module.eks.base_domain
argocd_project = module.eks.cluster_name

app_autosync = local.app_autosync
Expand All @@ -112,7 +112,7 @@ module "traefik" {
}

module "cert-manager" {
source = "git::https://github.com/camptocamp/devops-stack-module-cert-manager.git//eks?ref=v8.0.0"
source = "git::https://github.com/camptocamp/devops-stack-module-cert-manager.git//eks?ref=v8.1.0"

cluster_name = module.eks.cluster_name
base_domain = module.eks.base_domain
Expand Down Expand Up @@ -150,14 +150,16 @@ module "loki-stack" {
}

module "thanos" {
source = "git::https://github.com/camptocamp/devops-stack-module-thanos.git//eks?ref=v3.0.1"
source = "git::https://github.com/camptocamp/devops-stack-module-thanos.git//eks?ref=v4.0.0"

cluster_name = module.eks.cluster_name
base_domain = module.eks.base_domain
subdomain = local.subdomain
cluster_issuer = local.cluster_issuer
argocd_project = module.eks.cluster_name

app_autosync = local.app_autosync
app_autosync = local.app_autosync
enable_service_monitor = local.enable_service_monitor

metrics_storage = {
bucket_id = aws_s3_bucket.thanos_metrics_storage.id
Expand All @@ -179,10 +181,11 @@ module "thanos" {
}

module "kube-prometheus-stack" {
source = "git::https://github.com/camptocamp/devops-stack-module-kube-prometheus-stack.git//eks?ref=v9.0.0"
source = "git::https://github.com/camptocamp/devops-stack-module-kube-prometheus-stack.git//eks?ref=v9.2.1"

cluster_name = module.eks.cluster_name
base_domain = module.eks.base_domain
subdomain = local.subdomain
cluster_issuer = local.cluster_issuer
argocd_project = module.eks.cluster_name

Expand Down Expand Up @@ -218,10 +221,11 @@ module "kube-prometheus-stack" {
}

module "argocd" {
source = "git::https://github.com/camptocamp/devops-stack-module-argocd.git?ref=v4.0.0"
source = "git::https://github.com/camptocamp/devops-stack-module-argocd.git?ref=v4.3.0"

cluster_name = module.eks.cluster_name
base_domain = module.eks.base_domain
subdomain = local.subdomain
cluster_issuer = local.cluster_issuer
argocd_project = module.eks.cluster_name

Expand Down

0 comments on commit 2d9b340

Please sign in to comment.