Skip to content

The networking.gke.io/suppress-firewall-xpn-error: true annotation doesn't in combination with kubernetes.io/ingress.global-static-ip-name #569

@m1kola

Description

@m1kola

I tested on 1.11.3-gke.18 and it seems like there is an issue with networking.gke.io/suppress-firewall-xpn-error annotation: it doesn't seem to work in combination with kubernetes.io/ingress.global-static-ip-name.

If you create a static IP address using gcloud and then create a new Ingress resource using a yaml similar to the one below the Ingress resource will be created without both kubernetes.io/ingress.global-static-ip-name and networking.gke.io/suppress-firewall-xpn-error: true annotations (at least this is what I see in kubectl describe ingress.extensions/app).

Also for new Ingress objects controller will get a new IP address which will be different from what you specify in kubernetes.io/ingress.global-static-ip-name.

Expected result:

  1. A new Ingress resource reuses previously reserved IP address (specified by name in the kubernetes.io/ingress.global-static-ip-name annotation).
  2. Controller doesn't produce XPN firewall events
  3. I can see both kubernetes.io/ingress.global-static-ip-name and networking.gke.io/suppress-firewall-xpn-error annotations in kubectl describe ingress.extensions/app.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.global-static-ip-name: some-static-ip-name
    networking.gke.io/suppress-firewall-xpn-error: true
  name: app
  namespace: some-namespace
spec:
  backend:
    serviceName: app
    servicePort: 80
  tls:
  - hosts:
    - some.host.com
    secretName: some-tls-secret

Related issue #485 and PR #506

cc @grayluck @rramkumar1

/kind bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions