Start minikube server. It acts like a single node kubernetes server.
If you are running minikube inside the VM, use the following command.
Set docker environment variables
You can ssh into the VM by finding the IP (from kubectl config view) and using username "docker" password "tcuser":
Launch minikube dashboard
If you want to ssh into minikube,
Otherwise, you can use username and password to login username "docker" password "tcuser" using IP address.
Test kubernetes with hello-minikube
Install the hello-minikube pod
The minikube project on GitHub offers a quick start demo which uses a pre-built Docker image hello-minikube. Since we started the minikube cluster already, we can skip the first step:
Let’s run the built-in hello-minikube pod. This will create a deployment for the pod:
We can inspect the pods and the deployments to verify these have been updated with the following commands:
In order to access the hello-minikube service, we must first expose the deployment to an external IP via the command:
Note we must use the type=NodePort because minikube doesn’t support the LoadBalancer service. We can check if the service was exposed by listing services:
Find minikube service url
We could get the IP of minikube
Now we can either curl the service from the CLI, or hit it via the browser.
This verifies that we could successfully test kubenetes.
Delete the deployment and services.
Test with custom build docker image
Look at exist docker images
Copy the directory - web-service.
Build a new image using specification in Dockerfile
Start kubenete deployment
List the existing pods
Describe the pod
Expose the deployment to an external IP address and port in order to access it via curl:
Find service URL
Test the url using curl
Login to a container
Delete the deployment and service
Kubernetes Deployment Options
Installations for Windows - 10 Professional
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.11.0/bin/windows/amd64/kubectl.exe
Add the binary in to your PATH.