wordpress-operator icon indicating copy to clipboard operation
wordpress-operator copied to clipboard

Not possible to configure ingress class

Open constin opened this issue 2 years ago • 1 comments

Not possible to configure ingress class with annotations, code will delete this annotation. I don't know reason, but it's not flexible. For example GKE with https support enabled will try to use https lb, but sometime better use TCP LB with internal ingress. https://github.com/bitpoke/wordpress-operator/blob/39f32a00478aef67b2286fcbf1788597d137ebc8/pkg/controller/wordpress/internal/sync/ingress.go#L103

Also ingress pathType hardcoded too. I'd like to have ability to configure it self.

constin avatar Jul 27 '22 07:07 constin

Not sure if it helps your case, but you can set it as a flag to the operator.

    spec:
      containers:
      - name: wordpress-operator
        image: bitpoke/wordpress-operator:v.0.12.1
        imagePullPolicy: Always
        args:
          - --ingress-class
          - nginx

ryanmrodriguez avatar Aug 30 '22 07:08 ryanmrodriguez