Table of Contents

Back to Home

Minikube

Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a Virtual Machine (VM)

Local Setup

MiniKube

Start/stop/status

minikube start
minikube stop 
minikube status
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100

To get the ip the minikube is running on

minikube ip
192.168.99.100

Minikube context : The context is what determines which cluster kubectl is interacting with. You can see all your available contexts in the ~/.kube/config file.

kubectl config use-context minikube

Verify that kubectl is configured to communicate with your cluster:

kubectl cluster-info

Open the Kubernetes dashboard in a browser:

minikube dashboard

that will open your browser to something like ..http://192.168.99.100:30000/#!/overview?namespace=default

Deploy an image to Kube use the run command

kubectl run salesforce --image=wtr-ecomm-etl-salesforce/wtr-etl-salesforce:latest  --port=8080

To update a run we can set a new instance:

kubectl set image deployment/hello-node hello-node=hello-node:v2
 
getting_started_for_development.txt · Last modified: 2019/09/26 08:00 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd