-
Notifications
You must be signed in to change notification settings - Fork 319
Description
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:
- A new
Ingressresource reuses previously reserved IP address (specified by name in thekubernetes.io/ingress.global-static-ip-nameannotation). - Controller doesn't produce XPN firewall events
- I can see both
kubernetes.io/ingress.global-static-ip-nameandnetworking.gke.io/suppress-firewall-xpn-errorannotations inkubectl 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-secretRelated issue #485 and PR #506
/kind bug