Cluster information:
Kubernetes version: 1.24.14-gke.1200
Cloud being used: GCP
I have a requirement to do a deployment on the GKE for an application. GKE is created in public subnet. The application on the pods should be accessed through the internet.
So we have created Service of type ClusterIP and Ingress resource with structure as below
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
labels:
application: admin-back
user: oxxx
name: admin-backend
namespace: apps
annotations:
kubernetes.io/ingress.class: gce
spec:
rules:
- host: backend.dev.oxxx.com
http:
paths:
- backend:
service:
name: admin-backend
port:
number: 80
path: /*
pathType: ImplementationSpecific
apiVersion: v1
kind: Service
metadata:
name: admin-backend
labels:
user: oxxx
namespace: apps
annotations:
cloud.google.com/backend-config: '{"default": "oxxx-admin-backend" }'
cloud.google.com/neg: '{"ingress": true}'
spec:
selector:
user: oxxx
application: oxxx-admin-back
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: 6400
Up-on creation of ingress, a load balancer on GCP is also created and external IP is also generated. But when i tried to access the site with external IP x.x.x.x/test, i am facing below error.
response 404 (backend NotFound), service rules for the path non-existent
Same kind of structure is also followed for other deployments on the cluster and we are able to access them from outside. Please help and guide me.
Thanks
Srivatsasa Janaswamy