luizalabs / teresa

Open source tool to deploy apps to Kubernetes clusters
Other
556 stars 77 forks source link

Teresa deployment is halted if reserveStaticIP is set and an unmanaged ingress already exists #634

Closed retpolanne closed 4 years ago

retpolanne commented 4 years ago

Steps to reproduce

  1. Deploy Teresa with these vars
          - name: TERESA_K8S_INGRESS
            value: "true"
          - name: TERESA_DEPLOY_DEFAULT_SERVICE_TYPE
            value: NodePort
          - name: TERESA_K8S_CHECK_ANOTHER_INGRESS
            value: "true"
          - name: TERESA_DEPLOY_INGRESS_CLASS
            value: gce
  1. Create an app with --vhost and --reserve-static-ip
  2. Create an ingress with a name such as appname-ingress on the namespace
  3. Try to deploy the app, it will throw this error at the end of the deployment:
Operation not implemented for apps using k8s load balancer
  1. If you set reserveStaticIp to false on the teresa.io/app annotation on the namespace, the error won't be thrown.

This bug might have something to do with ErrNotImplementedOnLoadBalancer This Teresa deployment is running on GCE