<p>I have GKE and I need to use customised Ubuntu image for GKE nodes. I am planning to enable autoscaling. So I require to install TLS certificates to trust the private docker registry in each nodes. It's possible for existing nodes manually. But when I enable auto scale the cluster, it will spin up the nodes. Then docker image pull request will fail, because of the docker cannot trust the private docker registry which hosted in my on premise.</p>

<p>I have created a customised Ubuntu image and uploaded to image in GCP. I was trying to create a GKE and tried to set the node's OS image as that image which I created.</p>

<p>Do you know how to create a GKE cluster with customised Ubuntu Image? Has anyone experienced with incidents like this?</p>

Sanka Sathyaji
<p>You can add a custom pool where the image is Ubuntu and be sure to add the special GCE instance metadata <code>startup-script</code> and then you can put your customization on it.</p>

<p>But my advice is to put the URL of a shell script stored in a bucket of the same project, GCE will download every time a new node is created and will execute it on the startup as a root.</p>

<p><a href="https://cloud.google.com/compute/docs/startupscript#cloud-storage" rel="nofollow noreferrer">https://cloud.google.com/compute/docs/startupscript#cloud-storage</a></p>
