{"id":13510585,"url":"https://github.com/rootsongjc/cloud-native-sandbox","last_synced_at":"2025-03-16T09:33:19.797Z","repository":{"id":52940103,"uuid":"166383694","full_name":"rootsongjc/cloud-native-sandbox","owner":"rootsongjc","description":"Cloud Native Sandbox can help you setup a standalone Kubernetes and Istio environment with Docker on you own laptop.","archived":false,"fork":false,"pushed_at":"2021-04-13T02:15:59.000Z","size":63,"stargazers_count":132,"open_issues_count":3,"forks_count":36,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-09T18:12:04.588Z","etag":null,"topics":["cloud-native","docker","istio","kubernetes","service-mesh"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rootsongjc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-18T09:56:55.000Z","updated_at":"2025-02-23T12:11:50.000Z","dependencies_parsed_at":"2022-08-27T01:52:27.744Z","dependency_job_id":null,"html_url":"https://github.com/rootsongjc/cloud-native-sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsongjc%2Fcloud-native-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsongjc%2Fcloud-native-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsongjc%2Fcloud-native-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsongjc%2Fcloud-native-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootsongjc","download_url":"https://codeload.github.com/rootsongjc/cloud-native-sandbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809844,"owners_count":20351406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-native","docker","istio","kubernetes","service-mesh"],"created_at":"2024-08-01T02:01:45.198Z","updated_at":"2025-03-16T09:33:19.414Z","avatar_url":"https://github.com/rootsongjc.png","language":null,"funding_links":[],"categories":["Others","kubernetes","Cluster Provisioning \u0026 Lifecycle"],"sub_categories":[],"readme":"# Cloud Native Sandbox\n\nCloud Native Sandbox can help you setup a standalone Kubernetes and Istio environment with Docker on you own laptop.\n\nThe sandbox integrated with the following components:\n\n- Kubernetes v1.10.3\n- Istio v1.0.4\n- Kubernetes dashboard v1.8.3\n\n## Differences with kubernetes-vagrant-centos-cluster\n\nAs I have created the [kubernetes-vagrant-centos-cluster](https://github.com/rootsongjc/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.\n\n**Features**\n\n- No VirtualBox or Vagrantfile  required\n- Light weight\n- High speed, low drag\n- Easy to operate\n\n## Prerequisite\n\nYou only need a laptop with Docker Desktop installed and [Kubernetes enabled](https://docs.docker.com/docker-for-mac/#kubernetes).\n\nNote: Leave enough resources for Docker Desktop. At least 2 CPU, 4G memory.\n\n## Install\n\nTo start the sandbox, you have to run the following steps. \n\n### Kubernetes dashboard(Optional)\n\nInstall Kubernetes dashboard.\n\n```bash\nkubectl apply -f install/dashboard/\n```\n\nGet the dashboard token.\n\n```bash\nkubectl -n kube-system describe secret default| awk '$1==\"token:\"{print $2}'\n```\n\nExpose `kubernetes-dashboard` service.\n\n```bash\nkubectl proxy\n```\n\nLogin to Kubernetes dashboard on \u003chttp://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login\u003e with the above token.\n\n### Istio(Required)\n\nInstall istio service mesh with the default add-ons.\n\n```bash\n# Install istio\nkubectl apply -f install/istio/\n```\n\nTo expose service `grafana` on \u003chttp://localhost:3000\u003e.\n\n```bash\nkubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 \u0026\n```\n\nTo expose service `prometheus` on \u003chttp://localhost:9090\u003e.\n\n```bash\nkubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=prometheus -o jsonpath='{.items[0].metadata.name}') 9090:9090 \u0026\n```\n\nTo expose service `jaeger` on \u003chttp://localhost:16686\u003e.\n\n```bash\nkubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=jaeger -o jsonpath='{.items[0].metadata.name}') 16686:16686 \u0026\n```\n\nTo expose service `servicegraph` on \u003chttp://localhost:8088/dotviz\u003e, \u003chttp://localhost:8088/force/forcegraph.html\u003e.\n\n```bash\nkubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=servicegraph -o jsonpath='{.items[0].metadata.name}') 8088:8088 \u0026\n```\n\n### Kiali\n\nInstall [kiali](https://www.kiali.io/).\n\n```bash\nkubectl -n istio-system apply -f install/kiali\n```\n\nTo expose service `kiali` on \u003chttp://localhost:20001\u003e.\n\n```bash\nkubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=kiali -o jsonpath='{.items[0].metadata.name}') 20001:20001 \u0026\n```\n\nUsername/password: admin/admin\n\n## Bookinfo sample\n\nDeploy [bookinfo sample](https://istio.io/docs/examples/bookinfo/).\n\n```bash\n# Enable sidecar auto injection\nkubectl label namespace default istio-injection=enabled\n# Deploy bookinfo sample\nkubectl -n default apply -f sample/bookinfo\n```\n\nVisit `productpage` on \u003chttp://localhost/productpage\u003e.\n\nLet's generate some loads.\n\n```bash\nfor ((i=0;i\u003c1000;i=i+1));do echo \"Step-\u003e$i\";curl http://localhost/productpage;done\n```\n\nYou can watch the service status through \u003chttp://localhost:3000\u003e.\n\n## Client tools\n\nTo operate the applications on Kubernetes, you should install the following tools.\n\n**Required**\n\n- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) - Deploy and manage applications on Kubernetes.\n- [istioctl](https://istio.io/docs/reference/commands/istioctl/) - Istio configuration command line utility.\n\n**Optional**\n\n- [kubectx](https://github.com/ahmetb/kubectx)  - Switch faster between clusters and namespaces in kubectl\n- [kube-ps1](https://github.com/jonmosco/kube-ps1) - Kubernetes prompt info for bash and zsh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsongjc%2Fcloud-native-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootsongjc%2Fcloud-native-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsongjc%2Fcloud-native-sandbox/lists"}