Github: https://github.com/rootsongjc/cloud-native-sandbox
Cloud Native Sandbox can help you setup a standalone Kubernetes and istio environment with Docker on you own laptop.
The sandbox integrated with the following components:
As I have created the kubernetes-vagrant-centos-cluster to set up a Kubernetes cluster and istio service mesh with vagrantfile
which consists of 1 master(also as node) and 3 nodes, but there is a big problem that it is so high weight and consume resources. So I made this light weight sandbox.
Features
Services
As the sandbox setup, you will get the following services.
Record with termtosvg.
You only need a laptop with Docker Desktop installed and Kubernetes enabled.
Note: Leave enough resources for Docker Desktop. At least 2 CPU, 4G memory.
To start the sandbox, you have to run the following steps.
Install Kubernetes dashboard.
kubectl apply -f install/dashbaord/
Get the dashboard token.
kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}'
Expose kubernetes-dashboard
service.
kubectl -n kube-system get pod -l k8s-app=kubernetes-dashboard -o jsonpath='{.items[0].metadata.name}'
Login to Kubernetes dashboard on http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login with the above token.
Install istio service mesh with the default add-ons.
# Install istio
kubectl apply -f install/istio/
To expose service grafana
on http://localhost:3000.
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 &
To expose service prometheus
on http://localhost:9090.
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=prometheus -o jsonpath='{.items[0].metadata.name}') 9090:9090 &
To expose service jaeger
on http://localhost:16686.
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=jaeger -o jsonpath='{.items[0].metadata.name}') 16686:16686 &
To expose service servicegraph
on http://localhost:8088/dotviz, http://localhost:8088/force/forcegraph.html.
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=servicegraph -o jsonpath='{.items[0].metadata.name}') 8088:8088 &
Install kiali.
kubectl -n istio-system apply -f install/kiali
To expose service kiali
on http://localhost:20001.
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=kiali -o jsonpath='{.items[0].metadata.name}') 20001:20001 &
Deploy bookinfo sample.
# Enable sidecar auto injection
kubectl label namespace default istio-injection=enabled
# Deploy bookinfo sample
kubectl -n default apply -f sample/bookinfo
Visit productpage
on http://localhost/productpage.
Let’s generate some loads.
for ((i=0;i<1000;i=i+1));do echo "Step->$i";curl http://localhost/productpage;done
You can watch the service status through http://localhost:3000.
To operate the applications on Kubernetes, you should install the following tools.
Required
Optional