nigelpoulton / ckad

Support files for Pluralsight CKAD course
114 stars 98 forks source link

Using minikube, kubectl is not able to utilize images that I built using docker build #35

Open SilvieM opened 1 year ago

SilvieM commented 1 year ago

Hi, First of all, I really like this course as it makes the topics so much more accessible than the other resources I tried.

I am using minikube to follow along with the tasks. I am having problems in Chapter 2.2 and then in 3.3 where you are supposed to use Docker build to create an image and then have the deployment use it. This works fine and then image is then in docker image list. But when I deploy, it ends up in ErrImagePull. Because minikube doesnt use the local docker, but its own. What I had to do: minikube ssh sudo apt install git git clone https://github.com/nigelpoulton/ckad.git then cd into the right folder and docker build there exit and then continue with the next steps from outside.

In 3.2, I also had to do some different things but was able to figure it out (using minikube ssh, then install nano there and then find the kube-apiserver file there) As Minikube was recommended as a good option in the first video, I thought it would be nice to drop a hint about that.

Also whenever you have to curl against the cluster, for example to a NodePort service, you also have to do minikube ssh and curl from that.

b4ssey commented 10 months ago

I tried following minikube's docs on this to at least get to make ckad:green and ckad:blue on run on minikube by default. Howver, I'm not sure of the sepreation of profiles. I followed: https://minikube.sigs.k8s.io/docs/tutorials/docker_desktop_replacement/ and when you go into docker ps, you would see all the images on minikube instead of docker.

For the testing on minikube ssh, $ curl

Thanbks @SilvieM !