PodinfoGo 微服务模板

联合创作 · 2023-09-28

Podinfo 是一个用 Go 制作的微型 Web 应用程序,展示了在 Kubernetes 中运行微服务的最佳实践。Podinfo被CNCF项目使用,如 Flux 和 Flagger,用于端到端测试和 workshops。

已实现的技术指标

  • Health checks (readiness and liveness)
  • Graceful shutdown on interrupt signals
  • secrets 和 configmaps 的文件观察器
  • Instrumented with Prometheus
  • 用 Istio 和 Jaeger 进行追踪
  • Linkerd service profile
  • Structured logging with zap
  • 12-factor app with viper
  • 故障注入(随机错误和延迟)
  • Swagger文档
  • Helm 和 Kustomize 安装器
  • 用 Kubernetes Kind 和 Helm 进行端到端测试
  • 使用 GitHub Actions 和 Open Policy Agent 的 Kustomize 测试
  • 使用 Docker buildx 和 Github Actions 的多架构容器镜像
  • 用 trivy 进行 CVE 扫描

Web UI:

浏览 5
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报