Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Backend config are not applying the Custom Response Headers

Hi all!

I have a cluster kubernetes running in the latest version and I'm trying to setup Custom Response Headers and Custom Request Headers via Backend Config. I followed the documentation from google to apply it but it's not working.

https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-configuration#request_headers

The manifest are beeing applyed but the configurations on google no.
Screenshot 2023-10-13 at 15.20.14.png

0 2 1,662
2 REPLIES 2

Hi @gustav0peters 

Welcome to Google Cloud Community!

Since you're able to review this guide, you can also try to follow this exercise guide wherein you can try to implement the custom headers.

You may also check this link on creating custom headers in backend services via console or CLI. 

You can also use below sample manifest file below for Ingress as a guide.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: nginx-ingress
  annotations:
    cloud.google.com/backend-config: '{"default": "my-backendconfig"}'
spec:
  ingressClassName: gce
-
-
-

 

For reference added information, you can check this following links:

I hope this information is helpful.

If you need further assistance, you can always file a ticket on our support team.

Did you correctly annotate your Service?
Are the request headers not working as well?

Top Labels in this Space