Skip to content

Haproxy - make looking for backends only for namespace where deployed. #811

Description

@maven1987

Hi, I have a issue with controller.
In my cluster many apps have own backend created by devs and configured thru ingress just like this below:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: apache-airflow
  annotations:
  labels:
    {}
  namespace: airflow
spec:
  **defaultBackend:
    service:
      name: airflow-api-server
      port:
        number: 8080**
  ingressClassName: haproxy
  rules:
    - host: apache-airflow-dev.example.com
      http:
        paths:
          - backend:
              service:
                name: airflow-api-server
                port:
                  number: 8080
            path: /
            pathType: Prefix
  tls:
    - hosts:
        - apache-airflow-dev.example.com
  backend:
    {}

When bolded section is configured and haproxy start it take it as its own default backend for all apps but I don't want it.

Is there option to make haproxy ingress controller to not look for this config in other other namespace or ignore this config section.

For now if controller set it and no rules matches, controller redirect user trafic to this page instead my custom error page configured.
Removing this section from all ingresses is idea but my dev require them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions