Skip to content

Commit a620f2d

Browse files
committed
feat: update KinD example with newer module versions
1 parent 081a34b commit a620f2d

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

examples/kind/locals.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
locals {
2-
kubernetes_version = "v1.27.1"
3-
cluster_name = "kind-cluster"
4-
base_domain = format("%s.nip.io", replace(module.traefik.external_ip, ".", "-"))
5-
cluster_issuer = "ca-issuer"
2+
kubernetes_version = "v1.27.1"
3+
cluster_name = "kind-cluster"
4+
base_domain = format("%s.nip.io", replace(module.traefik.external_ip, ".", "-"))
5+
cluster_issuer = "ca-issuer"
6+
enable_service_monitor = false
67
}

examples/kind/main.tf

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Providers configuration
22

33
# These providers depend on the output of the respectives modules declared below.
4-
# However, for clarity and easo of maintenance we grouped them all together in this section.
4+
# However, for clarity and ease of maintenance we grouped them all together in this section.
55

66
provider "kubernetes" {
77
host = module.kind.parsed_kubeconfig.host
@@ -48,7 +48,7 @@ provider "keycloak" {
4848
# Module declarations and configuration
4949

5050
module "kind" {
51-
source = "git::https://github.com/camptocamp/devops-stack-module-cluster-kind.git?ref=v2.2.0"
51+
source = "git::https://github.com/camptocamp/devops-stack-module-cluster-kind.git?ref=v2.2.2"
5252

5353
cluster_name = local.cluster_name
5454
kubernetes_version = local.kubernetes_version
@@ -65,7 +65,7 @@ module "argocd_bootstrap" {
6565
}
6666

6767
module "traefik" {
68-
source = "git::https://github.com/camptocamp/devops-stack-module-traefik.git//kind?ref=v1.0.0"
68+
source = "git::https://github.com/camptocamp/devops-stack-module-traefik.git//kind?ref=v1.1.0"
6969

7070
cluster_name = local.cluster_name
7171

@@ -81,13 +81,12 @@ module "traefik" {
8181
}
8282

8383
module "cert-manager" {
84-
source = "git::https://github.com/camptocamp/devops-stack-module-cert-manager.git//self-signed?ref=v2.0.0"
84+
source = "git::https://github.com/camptocamp/devops-stack-module-cert-manager.git//self-signed?ref=v3.1.0"
8585

86-
# TODO remove useless base_domain and cluster_name variables from "self-signed" module.
87-
cluster_name = local.cluster_name
88-
base_domain = local.base_domain
8986
argocd_namespace = module.argocd_bootstrap.argocd_namespace
9087

88+
enable_service_monitor = local.enable_service_monitor
89+
9190
dependency_ids = {
9291
argocd = module.argocd_bootstrap.id
9392
}
@@ -127,7 +126,7 @@ module "minio" {
127126
cluster_issuer = local.cluster_issuer
128127
argocd_namespace = module.argocd_bootstrap.argocd_namespace
129128

130-
enable_service_monitor = false
129+
enable_service_monitor = local.enable_service_monitor
131130

132131
config_minio = local.minio_config
133132

0 commit comments

Comments
 (0)