<p>I've been using minikube and this yml file:</p>
<pre><code>apiVersion: networking.k8s.io/v1
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/rewrite-target: /$1
spec:
  rules:
    - http:
        paths:
          - path: /?(.*)
            pathType: Prefix
            backend:
              service:
                name: client-cluster-ip
                port:
                  number: 3000
          - path: /api/?(.*)
            pathType: Prefix
            backend:
              service:
                name: server-cluster-ip
                port:
                  number: 5000
</code></pre>
<p>I've installed helm on my GKE cluster and installed ingress-nginx via helm following their directions <a href="https://kubernetes.github.io/ingress-nginx/deploy/#using-helm" rel="nofollow noreferrer">here.</a></p>
<p>I kubectl apply my k8s and they all spin up besides the ingress-service from the file above.</p>
<p>Any help is much appreciated.</p>
<p>I've tried this:</p>
<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-service
  namespace: my-ingress-nginx
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
    nginx.ingress.kubernetes.io/ssl-redirect: &quot;false&quot;
    nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
  rules:
    - http:
        paths:
          - path: /*
            backend:
              serviceName: client-cluster-ip
              servicePort: 3000
          - path: /api/*
            backend:
              serviceName: server-cluster-ip
              servicePort: 5000
</code></pre>
<p>I'm really stuck here. Not seeing ingress-service show up like I would in minikube and I have no idea why.</p>
<p>server-cluster-ip:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: server-cluster-ip
spec:
  type: ClusterIP
  selector:
    component: server
  ports:
    - port: 5000
      targetPort: 5000
</code></pre>
<p>client-cluster-ip:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: client-cluster-ip
spec:
  type: ClusterIP
  selector:
    component: web
  ports:
    - port: 3000
      targetPort: 3000
</code></pre>
<p>The deployments and the clusterIp services above are being applied to the cluster but the ingress-service to direct traffic to them is not.</p>
<p>Services:</p>
<pre><code>NAME                                    TYPE           
client-cluster-ip              ClusterIP      
kubernetes                              ClusterIP      
my-ingress-nginx-controller             LoadBalancer   
my-ingress-nginx-controller-admission   ClusterIP      
postgres-cluster-ip            ClusterIP      
redis-cluster-ip               ClusterIP      
server-cluster-ip              ClusterIP  
</code></pre>
<p>the my-ingress-nginx-controller and my-ingress-nginx-controller-admission was created when I did <code>helm install my-ingress-nginx ingress-nginx/ingress-nginx</code></p>
<p>Why can't I create an ingress service?</p>

mitchldtn
<p>I realized I needed to open port 8443 from the <a href="https://kubernetes.github.io/ingress-nginx/deploy/#gce-gke" rel="nofollow noreferrer">documentation</a>.</p>
<p>So I went to the <a href="https://console.cloud.google.com/networking/firewalls/list" rel="nofollow noreferrer">firewall list</a> in google cloud. Found the rules that had tcp:80,443 in the Protocols / ports. Clicked it, clicked edit and added 8443 to it.</p>
<p>I had an error after but this fixed it:</p>
<pre><code>apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: ingress-resource
  annotations:
    kubernetes.io/ingress.class: &quot;nginx&quot;
    nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
    nginx.ingress.kubernetes.io/ssl-redirect: &quot;false&quot;
    nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
  rules:
    - http:
        paths:
          - path: /?(.*)
            backend:
              serviceName: client-cluster-ip
              servicePort: 3000
          - path: /api/?(.*)
            backend:
              serviceName: server-cluster-ip
              servicePort: 5000
</code></pre>
<p>Notice I changed * for ?(.*)</p>
