
# Show details of application-nodeport service $ kubectl describe service application-nodeport # List a specific service with the name application-nodeport $ kubectl get service application-nodeport # Create a service object that exposes the deployment using the service type NodePort $ kubectl expose deployment application-nodeport -type =NodePort -port =8080 # Show details of application-nodeport deployment $ kubectl describe deployment application-nodeport # List a specific deployment with the name application-nodeport $ kubectl get deployment application-nodeport $ kubectl create deployment application-nodeport -image =/echoserver:1.4 # Create a deployment with the name application-nodeport using the echoserver image. # Starts a local Kubernetes cluster $ minikube start Use the Kubernetes dashboard to see all the services are running, and finally stop the local kubernetes cluster. Also ensure that all the pods are running as part of the minikube installation.

Start the local kubernetes cluster and ensure that minikube is up and running.

Minikube Usage Scenarios Minikube Basic Startup The $MINIKUBE_HOME resolves to the ~/.minikube folder and contains all the minikube configuration and cached minikube artefacts.Įxplicit Config: ~/.minikube/config/config.json (Via minikube config set commands) Default Config: ~/.minikube/profiles/minikube/config.json Applied Config: ~/.minikube/machines/minikube/config.jsonĬonfiguration files can be mounted on the minikube node via ~/.minikube/files/home/config.yaml -> /home/config.yaml. Minikube is configurable via the config.json file, environment variables and flags. The minikube deployment files in ~/.minikube/addons/deployment.yaml can be used to run custom Kubernetes resources every time minikube starts.
DOCKER FOR MAC NODEPORT HOW TO
