bitpoke / wordpress-operator

Bitpoke Kubernetes operator for WordPress
Apache License 2.0
226 stars 35 forks source link

Not possible to configure ingress class #102

Open constin opened 2 years ago

constin commented 2 years ago

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.

ryanmrodriguez commented 2 years ago

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