{"id":14987656,"url":"https://github.com/jxlwqq/kubernetes-examples","last_synced_at":"2025-05-16T18:08:28.887Z","repository":{"id":37390157,"uuid":"244923573","full_name":"jxlwqq/kubernetes-examples","owner":"jxlwqq","description":"Kubernetes 经典示例","archived":false,"fork":false,"pushed_at":"2024-12-11T23:54:59.000Z","size":993,"stargazers_count":227,"open_issues_count":2,"forks_count":69,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T17:00:17.712Z","etag":null,"topics":["cka","deployment","docker","expressjs","flask","gin","istio","knative","kubernetes","laravel","operator-framework","statefulset"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jxlwqq.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-04T14:37:26.000Z","updated_at":"2025-04-01T09:10:28.000Z","dependencies_parsed_at":"2023-01-29T04:01:08.367Z","dependency_job_id":"54a21fb4-cd93-4fb4-94e2-222d32432cac","html_url":"https://github.com/jxlwqq/kubernetes-examples","commit_stats":{"total_commits":361,"total_committers":4,"mean_commits":90.25,"dds":0.05540166204986152,"last_synced_commit":"28ee12047b56c0ec9afb086d2e9211366924c541"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxlwqq%2Fkubernetes-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxlwqq%2Fkubernetes-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxlwqq%2Fkubernetes-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxlwqq%2Fkubernetes-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jxlwqq","download_url":"https://codeload.github.com/jxlwqq/kubernetes-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254582907,"owners_count":22095518,"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":["cka","deployment","docker","expressjs","flask","gin","istio","knative","kubernetes","laravel","operator-framework","statefulset"],"created_at":"2024-09-24T14:15:07.577Z","updated_at":"2025-05-16T18:08:28.868Z","avatar_url":"https://github.com/jxlwqq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubernetes-examples\n\n[![Testing](https://github.com/jxlwqq/kubernetes-examples/actions/workflows/testing.yml/badge.svg)](https://github.com/jxlwqq/kubernetes-examples/actions/workflows/testing.yml)\n\n#### 说明\n\n* 所有示例推荐在 Docker for Mac 内置的 Kubernetes 的集群上部署，请下载或更新到[最新版本](https://docs.docker.com/desktop/mac/release-notes/)。\n* 动手实验前，请先执行 `kubectl config current-context` 查看当前集群名称，确保切换到本地的 Kubernetes 集群。\n* Apple 芯片用户 / Windows 用户尚未完成全部测试，如有问题，请提 Issue。\n* 请勿用于生产环境。\n\n#### 经典示例\n\n\u003cimg src='./ingress.png' width='400' alt=\"ingress\"\u003e\n\n\u003e [安装 Ingress 控制器：ingress-nginx](./ingress-nginx) 是以下示例的前提条件。\n\n* [ingress 路由使用示例](deploying-simple-apple-and-banana-ingress)\n* [使用 Redis 部署 PHP 留言板应用程序](deploying-php-guestbook-application-with-redis)\n* [使用 MongoDB 部署 PHP 留言板应用程序](deploying-php-guestbook-application-with-mongodb)\n* [使用 Persistent Volumes 部署 WordPress 和 MySQL](deploying-wordpress-and-mysql-with-persistent-volumes)\n* [使用 MongoDB 部署 Node.js 笔记应用程序](deploying-nodejs-note-application-with-mongodb)\n* [部署 Laravel Demo Web 应用](deploying-laravel-application)\n* [使用 MySQL 和 Redis 部署 Laravel 7 Demo Web 应用](deploying-laravel-7-with-mysql-and-redis)\n* [使用 PHP-FPM 和 Nginx 部署一个简单的 phpinfo 应用](deploying-simple-php-app-with-fpm-and-nginx)\n* [部署一个简单的 Go Web 应用](deploying-hello-world-web-application-with-go)\n* [部署一个简单的 Gin 应用](deploying-simple-hello-gin-app)  \n* [部署一个简单的 Flask 应用](deploying-simple-hello-flask-app)\n* [部署一个简单的 Express 应用](deploying-simple-hello-express-app)\n* [部署一个简单的 Spring 应用](deploying-simple-hello-spring-app)\n* [使用蓝绿发布策略部署一个 echo 应用](deploying-simple-echo-app-using-blue-green-deployment)\n* [使用金丝雀发布策略部署一个 echo 应用](deploying-simple-echo-app-using-canary-deployment)\n* [部署一个基本的 StatefulSet 应用](deploying-basic-statefulset-app)\n* [部署一个 MySQL 集群 StatefulSet 应用](deploying-replicated-mysql-statefulset-app)\n* [部署 KBP 日志应用](deploying-kbp-journal-app)\n* [部署一个简单的加减乘除计算器微服务](deploying-simple-microservice-using-gin-and-grpc)\n\n---\n\n#### 本地安装多节点集群\n\n* [vagrant-centos7-kubeadm](multi-nodes-cluster/vagrant-centos7-kubeadm)\n* [vagrant-ubuntu18.04-kubeadm](multi-nodes-cluster/vagrant-ubuntu18.04-kubeadm)\n\n#### Certified Kubernetes Administrator (CKA) \n\n* [考试技巧](./cka-training/0.tips.md)\n* [安装](./cka-training/1.installing.md)\n* [Pod](./cka-training/2.pod.md)\n* [故障排查](./cka-training/8.troubleshooting.md)\n\n#### Istio\n\n* [安装](istio/0.installing)\n* [配置](istio/1.profile)\n* [注入](istio/2.injection)\n* [虚拟服务](istio/3.virtual-service)\n* [目标规则](istio/4.destination-rule)\n* [故障注入](istio/5.fault-injection)\n* [熔断](istio/6.circuit-breaking)\n* [案例：gRPC 负载均衡](https://github.com/jxlwqq/grpc-lb)\n* [案例：待办清单](https://github.com/jxlwqq/todo)\n* [案例：高级流量路由](istio/case-advanced-traffic-routing)\n* [案例：在线精品店](istio/case-online-boutique)\n* [案例：博客](https://github.com/jxlwqq/blog-microservices)\n\n#### Dapr\n\n* [安装](dapr/0.installing)\n* [Hello Kubernetes](dapr/1.hello-kubernetes)\n\n#### Knative\n\n* [安装](knative/0.installing)\n* [自动扩缩](knative/1.autoscale)\n* [流量分流](knative/2.traffic-split)\n\n#### Operator\n\n* [memcached-operator](https://github.com/jxlwqq/memcached-operator)：源于 Operator Framework 官方示例\n* [cnat-operator](https://github.com/jxlwqq/cnat-operator)：源于《Kubernetes 编程》示例\n* [hello-operator](https://github.com/jxlwqq/hello-operator)：源于 Hello Kubernetes 示例\n* [visitors-operator](https://github.com/jxlwqq/visitors-operator)：源于《Kubernetes 操作器》示例\n* [wordpress-operator](https://github.com/jxlwqq/wordpress-operator)：源于 Kubernetes 官方文档示例 Wordpress\n* [guestbook-operator](https://github.com/jxlwqq/guestbook-operator)：源于 Kubernetes 官方文档示例 Guestbook\n\n#### Learn From Source Code\n\n* [当你创建了一个 Deployment 时，Kubernetes 内部发生了什么？](./learn-from-source-code/what-happens-in-kubernetes-when-create-a-deployment.md)\n* [当一个请求到达 kube-apiserver 时，Kubernetes 内部发生了什么？](./learn-from-source-code/what-happens-in-kubernetes-when-a-request-hits-kube-apiserver.md)\n* [当一个 Pod 被调度时，Kubernetes 内部发生了什么？](./learn-from-source-code/what-happens-in-kubernetes-when-schedule-a-pod.md)\n\n#### 鸣谢\n\n[![JetBrains Logo (Main) logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://www.jetbrains.com/)\n\n本项目受到了来自 JetBrains 的产品的支持，在此表示感谢。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxlwqq%2Fkubernetes-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjxlwqq%2Fkubernetes-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxlwqq%2Fkubernetes-examples/lists"}