The problem was with healthchecks. So fix needed in:
service:
annotations:
service.beta.kubernetes.io/azure-load-balancer-health-probe-request-path: /
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This one is working fine:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: php-info
annotations:
# Enable ModSecurity and OWASP CRS
nginx.ingress.kubernetes.io/enable-modsecurity: "true"
nginx.ingress.kubernetes.io/enable-owasp-modsecurity-crs: "true"
# nginx.ingress.kubernetes.io/modsecurity-snippet: |-
# SecRuleEngine On
# SecRequestBodyAccess On
# SecAuditLog /dev/stdout
# SecAuditLogFormat JSON
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
#ingressClassName: external-nginx
rules:
- http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: php-info
port:
number: 8080
But when I change:
- path: /
to
- path: /p
It doesn't work. Even port 80 is not opened. Any idea?
I am browsing using IP address in that case and I would like to browse using IP address.
The problem was with healthchecks. So fix needed in:
service:
annotations:
service.beta.kubernetes.io/azure-load-balancer-health-probe-request-path: /