kubernetes-handbook-projects icon indicating copy to clipboard operation
kubernetes-handbook-projects copied to clipboard

ingress file outdated

Open yoadwo opened this issue 2 years ago • 0 comments

Is it possible to update the yaml file for the Ingress? it is quite outdated, and as such I could not complete the tutorial

  1. The annotation kubernetes.io/ingress.class: nginx is now replaced with spec.ingressClassName: nginx
  2. Using regex for paths now requires the annotation nginx.ingress.kubernetes.io/use-regex: "true", and using a different path type: ImplementationSpecific
  3. I suspect the rewrite target should be changed to $2 but not sure

After applying these, I could get the backend to respond, but the frontend didn't. getting error "Uncaught SyntaxError: Unexpected token '<". Not sure why is that, maybe the server sending incorrect response to browser. When applying rewrite rule "/" it was the opposite - frontend worked but backend didn't. Not sure if this is related to above issue or just me missing something.

yoadwo avatar Nov 17 '23 19:11 yoadwo