Setting up Minikube and Istio service mesh on your computer
Minikube is a tool that makes it easy to run Kubernetes locally. Here is the list of resources that will help you to set up Minikube on your machine along with Istio and other tools.
To Install:
The above resources will help you to set up the Minikube on your machine. I often run into issues with minikube instance that runs on on my macOS and then look around for options to delete the faulty instance. Finally, I decided to note it down somewhere for quick access ;)
To Unistall Minikube:
To Install:
- Install Minikube :
- Install Istio:
Here is the quick summary of all commands for installing Minikube and Istio on macOS
Install Minikube
============
$ brew cask install minikube
$ minikube start --memory=16384 --cpus=4 --kubernetes-version=v1.14.2
Install Istio
========
$ curl -L https://git.io/getLatestIstio | ISTIO_VERSION=1.2.4 sh -
$ cd istio-1.2.4
$ export PATH=$PWD/bin:$PATH
$ for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done
$ kubectl apply -f install/kubernetes/istio-demo.yaml
$ get svc -n istio-system
$ kubectl get svc -n istio-system
$ get pods -n istio-system
Install Istio bookinfo demo app
===============================
$ kubectl label namespace default istio-injection=enabled
$ kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
$ kubectl get services
$ kubectl get pods
$ kubectl exec -it $(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}') -c ratings -- curl productpage:9080/productpage | grep -o ""
$ kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
$ kubectl get gateway
$ export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')
$ export SECURE_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="https")].nodePort}')
$ export INGRESS_HOST=$(minikube ip)
$ export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
$ printenv GATEWAY_URL
Try bookinfo demo app
=================
Open browser: http://192.168.99.113:31380/productpage (Please note that hostname:port used in the URL '192.168.99.113:31380' is derived from the output of $printenv GATEWAY_URL )
Install Minikube
============
$ brew cask install minikube
$ minikube start --memory=16384 --cpus=4 --kubernetes-version=v1.14.2
Install Istio
========
$ curl -L https://git.io/getLatestIstio | ISTIO_VERSION=1.2.4 sh -
$ cd istio-1.2.4
$ export PATH=$PWD/bin:$PATH
$ for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done
$ kubectl apply -f install/kubernetes/istio-demo.yaml
$ get svc -n istio-system
$ kubectl get svc -n istio-system
$ get pods -n istio-system
Install Istio bookinfo demo app
===============================
$ kubectl label namespace default istio-injection=enabled
$ kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
$ kubectl get services
$ kubectl get pods
$ kubectl exec -it $(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}') -c ratings -- curl productpage:9080/productpage | grep -o ""
$ kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
$ kubectl get gateway
$ export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')
$ export SECURE_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="https")].nodePort}')
$ export INGRESS_HOST=$(minikube ip)
$ export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
$ printenv GATEWAY_URL
Try bookinfo demo app
=================
Open browser: http://192.168.99.113:31380/productpage (Please note that hostname:port used in the URL '192.168.99.113:31380' is derived from the output of $printenv GATEWAY_URL )
The above resources will help you to set up the Minikube on your machine. I often run into issues with minikube instance that runs on on my macOS and then look around for options to delete the faulty instance. Finally, I decided to note it down somewhere for quick access ;)
To Unistall Minikube:
$ minikube delete
$ brew cask uninstall minikube
$ rm -rf /usr/local/bin/minikube
$ rm -rf ~/.minikube .kube
Very useful content that guided me to learn the information about this topic and Do more post and sharing with us me...
ReplyDeleteOracle DBA Training in Chennai
oracle apps dba training in chennai
Oracle Training in Chennai
Pega Training in Chennai
Linux Training in Chennai
Unix Training in Chennai
Power BI Training in Chennai
Job Openings in Chennai
Appium Training in Chennai
Oracle DBA Training in Velachery
Thanks for sharing this post. I'm very interested in this topics. I would like to share an awesome online file converter please make sure to check this website here
ReplyDeleteI have gone through your blog, it was very much useful for me and because of your blog, and also I gained many unknown information, the way you have clearly explained is really fantastic. Kindly post more like this, Thank You. Aviation academy in chennai
ReplyDeleteThanks for your interesting ideas.the information's in this blog is very much useful for me to improve my knowledge.
ReplyDeleteKubernetes Online Training
Thank for this blog more informative step by step and useful contents. I here by attached my site would you see this blog
ReplyDelete7 tips to start a career in digital marketing
“Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.
we have offered to the advanced syllabus course digital marketing for available join now
more details click the link
https://www.webdschool.com/digital-marketing-course-in-chennai.html
This blog amazing very useful information
ReplyDeleteWeb designing trends in 2020
When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, Whats App, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.
we have offered to the advanced syllabus course web design and development for available join now
more details click the link now
https://www.webdschool.com/web-development-course-in-chennai.html
Wow it is really wonderful and awesome..Bihar Post office Recruitment 2020 is issued a new recruitment Notification 2020 For the post of the Gramin Dak Sevak. Plenty of the aspirants are in search of the latest Post Man jobs in Bihar...
ReplyDelete