<p>Hello I am new to devops
Problem: Unable to access the ticketing.dev from browser (configured using nginx)
I am using nginx and use minikube (running everything locally)</p>
<p>this is my service and deployment file</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: auth-depl
spec:
  replicas: 1
  selector:
    matchLabels:
      app: auth
  template:
    metadata:
      labels:
        app: auth
    spec:
      containers:
        - name: auth
          image: arshad/auth
---
apiVersion: v1
kind: Service
metadata:
  name: auth-srv
spec:
  type: NodePort
  selector:
    app: auth
  ports:
    - name: auth
      protocol: TCP
      port: 3000
      targetPort: 3000
</code></pre>
<p>this is my ingress file</p>
<pre><code>kind: Ingress
metadata:
  name: ingress-service
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
    nginx.ingress.kubernetes.io/from-to-www-redirect: &quot;true&quot;
spec:
  rules:
    - host: ticketing.dev
      http:
        paths:
          - path: /api/users/?(.*)
            pathType: Prefix
            backend:
              service:
                name: auth-serv
                port:
                  number: 3000 
</code></pre>
<p>this is my</p>
<pre><code>NAME             CLASS    HOSTS           ADDRESS         PORTS AGE  
ingress-service  &lt;none&gt;   ticketing.dev   192.168.99.101   80  45m
</code></pre>
<p>I also added the /etc/hosts ip like ticketing.dev 192.168.99.101 but still I am getting <em>503 Service Temporarily Unavailable</em>
Anyone please help.</p>

MOHAMMAD ARSHAD 
<p>Hi you have a typo thats why. Your service name is auth-srv when in ingress you are calling service name auth-serv . Change it on ingress to auth-srv instead of  auth-serv .</p>
