Skip to content

Scheduling router pods on infra nodes can be improved with the following config instead of the service account #51

@nvnmandadhi

Description

@nvnmandadhi
resource "local_file" "ingress_controller_config" {
  depends_on = [
    null_resource.generate_manifests
  ]

  filename        = "${path.root}/clusterconfig/openshift/99_cluster-ingress-controller.yml"
  file_permission = "0644"

  content = <<-EOT
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
  name: default
  namespace: openshift-ingress-operator
spec:
  domain: apps.${var.cluster_name}.${var.base_domain}
  endpointPublishingStrategy:
    type: LoadBalancerService
    loadBalancer:
      scope: External
  nodePlacement:
    nodeSelector:
      matchLabels:
        node-role.kubernetes.io/infra: ""
  replicas: ${length(var.availability_zones)}
EOT
}

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