Skip to content

[Bug] When installing via ArgoCD (GitOps) the istio-system namespace is not created #8

@spkane

Description

@spkane
module "k8s-addons" {
  source  = "github.com/aws-ia/terraform-aws-eks-blueprints//modules/kubernetes-addons?ref=093574f79a50413b961376d9ec0310bda6b514b9"

  eks_cluster_id               = local.eks_cluster_id
  eks_worker_security_group_id = local.eks_worker_security_group_id

  enable_amazon_eks_coredns    = true
  amazon_eks_coredns_config    = {
    addon_version              = "v1.8.3-eksbuild.1"
  }
  
  enable_amazon_eks_kube_proxy = true
  amazon_eks_kube_proxy_config = {
    addon_version              = "v1.20.7-eksbuild.1"
  }

  enable_amazon_eks_vpc_cni    = true

  enable_argocd                       = true
  argocd_helm_config = {
    version          = "4.5.4"
    values           = [templatefile("${path.module}/helm_values/argocd-values.yaml.tftpl", {nodeSelector = local.primaryNodeSelector})]
  }

  argocd_manage_add_ons               = true
  argocd_applications     = {
    addons = {
      path                = "chart"
      repo_url            = "https://github.com/aws-samples/eks-blueprints-add-ons.git"
      project             = "default"
      add_on_application  = true // This indicates the root add-on application.
    }
  }

  // See: https://github.com/tetratelabs/terraform-eksblueprints-tetrate-istio-addon
  enable_tetrate_istio           = true
  tetrate_istio_version          = "1.13.3"
  tetrate_istio_base_helm_config = {
    values           = [templatefile("${path.module}/helm_values/tetrate-istio-base-values.yaml.tftpl", {nodeSelector = local.primaryNodeSelector})]
  }
  tetrate_istio_cni_helm_config = {
    values           = [templatefile("${path.module}/helm_values/tetrate-istio-cni-values.yaml.tftpl", {nodeSelector = local.primaryNodeSelector})]
  }
  tetrate_istio_istiod_helm_config = {
    values           = [templatefile("${path.module}/helm_values/tetrate-istio-istiod-values.yaml.tftpl", {nodeSelector = local.primaryNodeSelector})]
  }
  tetrate_istio_gateway_helm_config = {
    values           = [templatefile("${path.module}/helm_values/tetrate-istio-gateway-values.yaml.tftpl", {nodeSelector = local.primaryNodeSelector})]
  }

CleanShot 2022-04-25 at 16 57 22

Creating the namespace by hand gets past that error, but an initial look seemed to suggest that the namespace creation should be handled, and creating it is the default.

https://github.com/tetratelabs/terraform-eksblueprints-tetrate-istio-addon/blob/main/locals.tf#L13

That being said, it is not clear to me that the create_namespace value is actually being used anywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions