Skip to content

Instantly share code, notes, and snippets.

@iyank4
Created June 11, 2019 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iyank4/edca0da78587f06a26bb460a5173eecc to your computer and use it in GitHub Desktop.
Save iyank4/edca0da78587f06a26bb460a5173eecc to your computer and use it in GitHub Desktop.
On Mac
Enable the minikube registry
$ minikube addons enable registry
find the registry IP
$ kubectl get services -n kube-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP,9153/TCP 18h
kubernetes-dashboard ClusterIP 10.104.90.254 <none> 80/TCP 18h
registry ClusterIP 10.97.244.152 <none> 80/TCP 15h
add insecure-registries IP address, (and the port 10.97.244.152:80 maybe :)
$ cat ~/.docker/daemon.json
{
"debug" : true,
"experimental" : false,
"insecure-registries" : ["10.97.244.152"]
}
Restart the docker daemon.
enable the tunnel
$minikube tunnel
tag the images with that IP, and
$ docker push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment