<p>When I run skaffold this is the error I get. Skaffold generates tags, checks the cache, starts the deploy then it cleans up.</p>
<pre><code>- stderr: &quot;error: error parsing C: ~\k8s\\ingress-srv.yaml: error converting YAML to JSON: yaml: line 20: mapping values are not allowed in this context
\n&quot;
 - cause: exit status 1
</code></pre>
<p>Docker creates a container for the server. Here is the ingress server yaml file:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-srv
  annotations:
    kubernetes.io/ingress.class: &quot;nginx&quot;
spec:
  rules:
    - host: northernherpgeckosales.dev
      http:
        paths:
          - path: /api/users/?(.*)
            pathType: Prefix
            backend:
              service:
                name: auth-srv
                port:
                  number: 3000
          - path: /?(.*)
              pathType: Prefix
              backend:
                service:
                  name: front-end-srv
                  port:
                    number: 3000 
</code></pre>
<p>For good measure here is the skaffold file:</p>
<pre><code>apiVersion: skaffold/v2alpha3
kind: Config
deploy:
  kubectl:
    manifests:
      - ./infra/k8s/*
build:
  local:
    push: false
  artifacts:
    - image: giantgecko/auth
      context: auth
      docker:
        dockerfile: Dockerfile
      sync:
        manual:
          - src: 'src/**/*.ts'
            dest: .
    - image: giantgecko/front-end
      context: front-end
      docker:
        dockerfile: Dockerfile
      sync:
        manual:
          - src: '**/*.js'
            dest: .
</code></pre>

Jonathan Lang
<p>Take a closer look at your Ingress definition file (starting from line 19):</p>
<pre class="lang-yaml prettyprint-override"><code>- path: /?(.*)
    pathType: Prefix
    backend:
      service:
        name: front-end-srv
        port:
          number: 3000
</code></pre>
<p>You have unnecessary indents from the line 20 (<code>pathType: Prefix</code>) till the end of the file. Just format your YAML file properly. For the previous <code>path: /api/users/?(.*)</code> everything is alright - no unnecessary indents.</p>
<p>Final YAML looks like this:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-srv
  annotations:
    kubernetes.io/ingress.class: &quot;nginx&quot;
spec:
  rules:
    - host: northernherpgeckosales.dev
      http:
        paths:
          - path: /api/users/?(.*)
            pathType: Prefix
            backend:
              service:
                name: auth-srv
                port:
                  number: 3000
          - path: /?(.*)
            pathType: Prefix
            backend:
              service:
                name: front-end-srv
                port:
                  number: 3000
</code></pre>
