# kubernetes-examples **Repository Path**: freedom_pioneer/kubernetes-examples ## Basic Information - **Project Name**: kubernetes-examples - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-05 - **Last Updated**: 2024-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # kubernetes-examples [![Testing](https://github.com/jxlwqq/kubernetes-examples/actions/workflows/testing.yml/badge.svg)](https://github.com/jxlwqq/kubernetes-examples/actions/workflows/testing.yml) #### 说明 * 所有示例推荐在 Docker for Mac 内置的 Kubernetes 的集群上部署,请下载或更新到[最新版本](https://docs.docker.com/desktop/mac/release-notes/)。 * 动手实验前,请先执行 `kubectl config current-context` 查看当前集群名称,确保切换到本地的 Kubernetes 集群。 * Apple 芯片用户 / Windows 用户尚未完成全部测试,如有问题,请提 Issue。 * 请勿用于生产环境。 #### 经典示例 ingress > [安装 Ingress 控制器:ingress-nginx](./ingress-nginx) 是以下示例的前提条件。 * [ingress 路由使用示例](deploying-simple-apple-and-banana-ingress) * [使用 Redis 部署 PHP 留言板应用程序](deploying-php-guestbook-application-with-redis) * [使用 MongoDB 部署 PHP 留言板应用程序](deploying-php-guestbook-application-with-mongodb) * [使用 Persistent Volumes 部署 WordPress 和 MySQL](deploying-wordpress-and-mysql-with-persistent-volumes) * [使用 MongoDB 部署 Node.js 笔记应用程序](deploying-nodejs-note-application-with-mongodb) * [部署 Laravel Demo Web 应用](deploying-laravel-application) * [使用 MySQL 和 Redis 部署 Laravel 7 Demo Web 应用](deploying-laravel-7-with-mysql-and-redis) * [使用 PHP-FPM 和 Nginx 部署一个简单的 phpinfo 应用](deploying-simple-php-app-with-fpm-and-nginx) * [部署一个简单的 Go Web 应用](deploying-hello-world-web-application-with-go) * [部署一个简单的 Gin 应用](deploying-simple-hello-gin-app) * [部署一个简单的 Flask 应用](deploying-simple-hello-flask-app) * [部署一个简单的 Express 应用](deploying-simple-hello-express-app) * [部署一个简单的 Spring 应用](deploying-simple-hello-spring-app) * [使用蓝绿发布策略部署一个 echo 应用](deploying-simple-echo-app-using-blue-green-deployment) * [使用金丝雀发布策略部署一个 echo 应用](deploying-simple-echo-app-using-canary-deployment) * [部署一个基本的 StatefulSet 应用](deploying-basic-statefulset-app) * [部署一个 MySQL 集群 StatefulSet 应用](deploying-replicated-mysql-statefulset-app) * [部署 KBP 日志应用](deploying-kbp-journal-app) * [部署一个简单的加减乘除计算器微服务](deploying-simple-microservice-using-gin-and-grpc) --- #### 本地安装多节点集群 * [vagrant-centos7-kubeadm](multi-nodes-cluster/vagrant-centos7-kubeadm) * [vagrant-ubuntu18.04-kubeadm](multi-nodes-cluster/vagrant-ubuntu18.04-kubeadm) #### Certified Kubernetes Administrator (CKA) * [考试技巧](./cka-training/0.tips.md) * [安装](./cka-training/1.installing.md) * [Pod](./cka-training/2.pod.md) * [故障排查](./cka-training/8.troubleshooting.md) #### Istio * [安装](istio/0.installing) * [配置](istio/1.profile) * [注入](istio/2.injection) * [虚拟服务](istio/3.virtual-service) * [目标规则](istio/4.destination-rule) * [故障注入](istio/5.fault-injection) * [熔断](istio/6.circuit-breaking) * [案例:gRPC 负载均衡](https://github.com/jxlwqq/grpc-lb) * [案例:待办清单](https://github.com/jxlwqq/todo) * [案例:高级流量路由](istio/case-advanced-traffic-routing) * [案例:在线精品店](istio/case-online-boutique) * [案例:博客](https://github.com/jxlwqq/blog-microservices) #### Dapr * [安装](dapr/0.installing) * [Hello Kubernetes](dapr/1.hello-kubernetes) #### Knative * [安装](knative/0.installing) * [自动扩缩](knative/1.autoscale) * [流量分流](knative/2.traffic-split) #### Operator * [memcached-operator](https://github.com/jxlwqq/memcached-operator):源于 Operator Framework 官方示例 * [cnat-operator](https://github.com/jxlwqq/cnat-operator):源于《Kubernetes 编程》示例 * [hello-operator](https://github.com/jxlwqq/hello-operator):源于 Hello Kubernetes 示例 * [visitors-operator](https://github.com/jxlwqq/visitors-operator):源于《Kubernetes 操作器》示例 * [wordpress-operator](https://github.com/jxlwqq/wordpress-operator):源于 Kubernetes 官方文档示例 Wordpress * [guestbook-operator](https://github.com/jxlwqq/guestbook-operator):源于 Kubernetes 官方文档示例 Guestbook #### Learn From Source Code * [当你创建了一个 Deployment 时,Kubernetes 内部发生了什么?](./learn-from-source-code/what-happens-in-kubernetes-when-create-a-deployment.md) * [当一个请求到达 kube-apiserver 时,Kubernetes 内部发生了什么?](./learn-from-source-code/what-happens-in-kubernetes-when-a-request-hits-kube-apiserver.md) * [当一个 Pod 被调度时,Kubernetes 内部发生了什么?](./learn-from-source-code/what-happens-in-kubernetes-when-schedule-a-pod.md) #### 鸣谢 [![JetBrains Logo (Main) logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://www.jetbrains.com/) 本项目受到了来自 JetBrains 的产品的支持,在此表示感谢。