Ingress rule: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: k8s . . .

samir parhi:
Ingress rule:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: k8s-ingress
namespace: ingress
spec:
backend:
serviceName: test-app
servicePort: 80

Ashok Kumar:
What issues are you facing? It would be easier if you post the issue with screenshot or by any means along with your post!
Below are few things you can look upon

  1. If you are using minikube then you need enable ingress addons and then port forward.
 kubectl port-forward pod/mypod 8888:5000
  1. Check the pod/service is on the same namespace as ingress. You are deploying the ingress on ingress namespace
  2. Also form your above post I see there is no targetPort mapped to the container port on your service yaml

Mohamed Ayman:
Check the examples in the documentation:
https://kubernetes.io/docs/concepts/services-networking/ingress/