<p>I am deploying a kubernetes app via github on GCP clusters. Everything works fine  then.. I came across <code>cloud deploy delivery pipeline</code>..now I am stuck.</p>
<p>Following the <a href="https://cloud.google.com/deploy/docs/quickstart-basic?_ga=2.141149938.-1343950568.1631260475&amp;_gac=1.47309141.1631868766.CjwKCAjw-ZCKBhBkEiwAM4qfF2mz0qQw_k68XtDo-SSlglr1_U2xTUO0C2ZF8zBOdMlnf_gQVwDi3xoCQ8IQAvD_BwE" rel="nofollow noreferrer">docs</a> here</p>
<pre><code>apiVersion: skaffold/v2beta12
kind: Config
build:
  artifacts:
  - image: skaffold-example
deploy:
  kubectl:
    manifests:
      - k8s-*
</code></pre>
<p>In the <code>k8s</code> folder I have my deployment files like so</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: ixh-auth-depl
  labels:
    app: ixh-auth
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ixh-auth
  template:
    metadata:
      labels:
        app: ixh-auth
    spec:
      containers:
      - name: ixh-auth
        image: mb/ixh-auth:latest
        ports:
        - containerPort: 3000
        resources:
          requests:
            cpu: 100m
            memory: 500Mi
</code></pre>
<p>but it gives the error <code>invalid kubernetes manifest</code>. I cannot find anything to read on this and don't know how to proceed.</p>

<p>@Abhishek Rai,  I agree with your answer. Google Cloud Deploy uses <strong>skaffold render</strong> to render your Kubernetes manifests, replacing untagged image names with the tagged image names of the container images you're deploying. Then when you promote the release, Google Cloud Deploy uses skaffold apply to apply the manifests and deploy the images to your Google Kubernetes Engine cluster.The content of manifest files should include the path of the yaml files as</p>
<pre><code>deploy:
  kubectl:
    manifests:
      - PATH_TO_MANIFEST
</code></pre>
<p>so that the error will not be encountered. Refer to the <a href="https://cloud.google.com/deploy/docs/skaffold" rel="nofollow noreferrer">document</a>  for more details.</p>
