I have an azure kubernestes cluster where I am using applcation gateway in the front. the pod is serving an static index.html page. but somehow when I click on our website to the service, it is creating a post method and browser is throwing
"nginx 405 not allowed" error. but when I go to the address bar and just hit enter from the keyboard, it brings the content. but when I hit enter, in the broswer developer view, it shows the GET method. is there anyway to make it GET Method instead of POSt method sent to the ingress controller?
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
appgw.ingress.kubernetes.io/appgw-ssl-certificate: cert
kubernetes.io/ingress.class: azure/application-gateway
creationTimestamp: "2022-08-01T11:43:56Z"
generation: 11
labels:
app.kubernetes.io/instance: xxx
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: xxx
helm.sh/chart: XXXX-0.0.1-SNAPSHOT
name: XXXX-ingress
namespace: xxx
resourceVersion: "xxx"
uid: xxxx
spec:
rules:
- host: manuals.dat.de
http:
paths:
- backend:
service:
name: xxx-svc
port:
number: 80
path: /
pathType: Prefix
status:
loadBalancer:
ingress:
- ip: xx.xx.xx.xx