title: Skipping deploy due to sync error:copying files: running error: unable to upgrade connection: container not found (\\\"auth\\\")
body: <p>kubenrnetes deployment auth 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: nadavirinchi/auth
            resources:
              limits:
                memory: 512Mi
                cpu: &quot;1&quot;
  ---
  
  
  
  apiVersion: v1
    kind: Service
    metadata: 
      name: auth-srv
    spec:
      selector:
        app: auth
      ports:
        - name: auth
          protocol: TCP
          port: 3000
          targetPort: 3000
  </code></pre>
  <p>skaffold.yaml file</p>
  <pre><code>apiVersion: skaffold/v2alpha3
  kind: Config
  deploy:
    kubectl:
      manifests:
        - ./infra/k8s/*
  build:
    local:
      push: false
    artifacts: 
      - image: nadavirinchi/auth
        context: auth
        docker:
          dockerfile: Dockerfile
        sync: 
          manual:
            - src: 'src/**/*.ts'
              dest: .
  </code></pre>
  <p>error:</p>
  <p>syncing 1 files for nadavirinchi/auth:115169219879631443c11fc8c0d683d0d36bba795251c64884094aa92a771735
  time=&quot;2021-11-09T16:18:20+05:30&quot; level=warning msg=&quot;Skipping deploy due to sync error:copying files: running [kubectl --context docker-desktop exec auth-depl-99888fc4b-vcc2c --namespace default -c auth -i -- tar xmf - -C / --no-same-owner]\n - stdout: &quot;&quot;\n - stderr: &quot;error: unable to upgrade connection: container not found (\&quot;auth\&quot;)\n&quot;\n - cause: exit status 1&quot; subtask=-1 task=DevLoop</p>
  <p>running command:
  skaffold dev</p>