I have a following setup:
- Web app
- Grpc api
Both deployed on k8s behind nginx-ingress with auto tls provided by cert-manager. When Web app is trying to reach the gRPC api i'm getting 404. The gRPC api is running on 80 without tls so the ingress should terminate SSL. Here is my ingress configuration:
UPDATE:
Requests coming through thanks to help of Mr. Mason. Now I am getting 403 PermissionDEnied response. Any ideas how this can be resolved ?
kind: Service
metadata:
name: ${AUTH_API_IMAGE}
spec:
type: ClusterIP
ports:
- port: 80
- targetPort: 5300
selector:
app: ${AUTH_API_IMAGE}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ${AUTH_API_IMAGE}-ingress
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
cert-manager.io/cluster-issuer: letsencrypt
spec:
ingressClassName: nginx
tls:
- hosts:
- ${AUTH_API_HOST_NAME}
secretName: ${AUTH_API_IMAGE}-tls-secret
rules:
- host: ${AUTH_API_HOST_NAME}
http:
paths:
- path: /(.*)
pathType: Prefix
backend:
service:
name: ${AUTH_API_IMAGE}
port:
number: 80```