...
Code Block | ||||
---|---|---|---|---|
| ||||
kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node |
Use the dashboard to view the changes that have taken place.
- gcr.io is the google container registry, it is similar to hub.docker.com.
- hello-minikube-zero-install/hello-node is the name of the image within the register
- hello-minikube-zero-install/hello-node is the owner of the image within the register
- hello-world after the sub-command deployment is the name of the deployment that will be created
NOTE - if you want to work with the Docker registry see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
Creating a Service
By default, the Pod is only accessible by its internal IP address within the Kubernetes cluster. To make the hello-node
Container accessible from outside the Kubernetes virtual network, you have to expose the Pod as a Kubernetes Service.
...