Differences

This shows you the differences between two versions of the page.

Link to this comparison view

getting_started_for_development [2019/09/24 23:26]
root created
getting_started_for_development [2019/09/26 08:00]
root [Minikube]
Line 4: Line 4:
  
 Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a Virtual Machine (VM) 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 == 
 +
 +* https://​github.com/​kubernetes/​kops ​
 +* https://​helm.sh/​ - Helm helps you manage Kubernetes applications — Helm Charts helps you define, install, and upgrade even the most complex Kubernetes application.
 +* AWS https://​docs.aws.amazon.com/​eks/​latest/​userguide/​getting-started.html
 +
 +== MiniKube == 
 +
 +Start/​stop/​status ​
 +
 +<code java>
 +minikube start
 +minikube stop 
 +minikube status
 +minikube: Running
 +cluster: Running
 +kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100
 +</​code>​
 +
 +To get the ip the minikube is running on 
 +
 +<code java>
 +minikube ip
 +192.168.99.100
 +</​code>​
 +
 +
 +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.
 +
 +<code java>
 +kubectl config use-context minikube
 +</​code>​
 +
 +Verify that kubectl is configured to communicate with your cluster:
 +
 +<​code>​
 +kubectl cluster-info
 +</​code>​
 +
 +Open the Kubernetes dashboard in a browser:
 +
 +<code java>
 +minikube dashboard
 +</​code>​
 +
 +that will open your browser to something like ..http://​192.168.99.100:​30000/#​!/​overview?​namespace=default
 +
 +Deploy an image to Kube use the [[https://​kubernetes.io/​docs/​reference/​generated/​kubectl/​kubectl-commands#​run | run]]  command ​
 +
 +<code java>
 +kubectl run salesforce --image=wtr-ecomm-etl-salesforce/​wtr-etl-salesforce:​latest ​ --port=8080
 +</​code>​
 +
 +To update a run we can **set** a new instance:
 +<code java>
 +kubectl set image deployment/​hello-node hello-node=hello-node:​v2
 +</​code>​
 
getting_started_for_development.txt · Last modified: 2019/09/26 08:00 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd