How Do I Get Skaffold And Helm Charts To Work With A Local Image Repository? How Do I Get Skaffold And Helm Charts To Work With A Local Image Repository? kubernetes kubernetes

How Do I Get Skaffold And Helm Charts To Work With A Local Image Repository?


You can't use localhost in your image definition. For the sake of testing you can try to use the ip of the host where your private registry is running, say if the host has address 222.0.0.2, then use image: 222.0.0.2:5000/k8s-skaffold/php-test.

It is of course undesirable to hard-code an address so a better way is to omit the "host" part entirely;

  image: k8s-skaffold/php-test:v0.1

In this case your CRI (Container Runtime Interface) plugin will try a sequence of servers, for instance docker.io. The servers are configurable but unfortunately I don't know how to configure it for "docker" since I use cri-o myself.