kubernetes-handbook-projects
kubernetes-handbook-projects copied to clipboard
ingress file outdated
Is it possible to update the yaml file for the Ingress? it is quite outdated, and as such I could not complete the tutorial
- The annotation kubernetes.io/ingress.class: nginx is now replaced with spec.ingressClassName: nginx
- Using regex for paths now requires the annotation nginx.ingress.kubernetes.io/use-regex: "true", and using a different path type: ImplementationSpecific
- 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.