<p>I have a docker image in my local machine which I have pushed to Google Cloud Containers.
Now I want to deploy this image in Google Kubernetes Engine.</p>
<p>I am following the steps in below link -</p>
<p><a href="https://cloud.google.com/cloud-build/docs/deploying-builds/deploy-gke#deploying_a_pre-built_container_image" rel="nofollow noreferrer">https://cloud.google.com/cloud-build/docs/deploying-builds/deploy-gke#deploying_a_pre-built_container_image</a></p>
<p>I will create a YAML deployment config file.</p>
<p>My problem is where Do I need to keep this file in google cloud so that it can be used for deployment.
Also, in YAML file what is nginx - I have used the default one. Where do I need to keep this YAML config file.
ms_aggregator is name of my image</p>
<pre><code> apiVersion: &quot;apps/v1&quot;
kind: &quot;Deployment&quot;
metadata:
  name: &quot;deployment-aggregator&quot;
spec:
  replicas: 1
  selector:
    matchLabels:
      app: &quot;nginx-1&quot;
  template:
    metadata:
      labels:
        app: &quot;nginx-1&quot;
    spec:
      containers:
      - name: &quot;nginx-1&quot;
        image: &quot;ms_aggregator&quot;
</code></pre>

Hershika Sharma
<p>You need to use the full image name, that usually includes the image registry and repository.</p>
<p>From the example:</p>
<pre><code>&quot;gcr.io/cloud-builders/gke-deploy&quot;
</code></pre>
<p>Usually, the GCP format is</p>
<pre><code>&lt;docker registry host&gt;/&lt;gcp-project-name&gt;/&lt;image-name&gt;
</code></pre>
<p>For you, this is likely:</p>
<pre><code>gcr.io/&lt;your-gcp-project-name&gt;/ms_aggregator
</code></pre>
<p>But if you have choosed to use a registry in a different location, the registry name could be e.g. <code>eu.gcr.io</code></p>
