Skip to content

Commit

Permalink
Make ArgoCD use it own nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
angelofenoglio committed Nov 11, 2023
1 parent 23189d2 commit 68accb9
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@ configs:
cm:
exec.enabled: "${enableWebTerminal}"

controller:
nodeSelector: ${nodeSelector}
tolerations: ${tolerations}

dex:
nodeSelector: ${nodeSelector}
tolerations: ${tolerations}

redis:
nodeSelector: ${nodeSelector}
tolerations: ${tolerations}

server:
nodeSelector: ${nodeSelector}
tolerations: ${tolerations}

ingress:
enabled: true
annotations:
Expand Down
15 changes: 12 additions & 3 deletions apps-devstg/us-east-1/k8s-eks/k8s-components/cicd-argo.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@ resource "helm_release" "argocd" {
version = "5.8.3"
values = [
templatefile("chart-values/argo-cd.yaml", {
enableWebTerminal = var.argocd.enableWebTerminal
argoHost = "argocd.${local.environment}.${local.private_base_domain}"
ingressClass = local.private_ingress_class
argoHost = "argocd.${local.environment}.${local.private_base_domain}",
ingressClass = local.private_ingress_class,
enableWebTerminal = var.argocd.enableWebTerminal,
nodeSelector = jsonencode({ stack = "argocd" }),
tolerations = jsonencode([
{
key = "stack",
operator = "Equal",
value = "argocd",
effect = "NoSchedule"
}
])
}),
# We are using a different approach here because it is very tricky to render
# properly the multi-line sshPrivateKey using 'templatefile' function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "helm_release" "externaldns_private" {
namespace = kubernetes_namespace.externaldns[0].id
repository = "https://charts.bitnami.com/bitnami"
chart = "external-dns"
version = "6.4.4"
version = "6.14.4"
values = [
templatefile("chart-values/externaldns.yaml", {
filteredDomain = local.private_base_domain
Expand All @@ -30,7 +30,7 @@ resource "helm_release" "externaldns_public" {
namespace = kubernetes_namespace.externaldns[0].id
repository = "https://charts.bitnami.com/bitnami"
chart = "external-dns"
version = "6.4.4"
version = "6.14.4"
values = [
templatefile("chart-values/externaldns.yaml", {
filteredDomain = local.public_base_domain
Expand Down
4 changes: 2 additions & 2 deletions apps-devstg/us-east-1/k8s-eks/k8s-components/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ variable "enable_external_secrets" {
}

variable "argocd" {
type = map(any)
type = any
default = {}
}

variable "argo_rollouts" {
type = map(any)
type = any
default = {}
}

Expand Down

0 comments on commit 68accb9

Please sign in to comment.