Skip to content
项目

关于

适用于 Kubernetes 的 Go 微服务模板

系统与基础设施

这些数字如何统计

可以做什么

  • HTTP and gRPC API for testing clients, proxies and service meshes: echo, headers, status codes, delays, chunked responses and WebSockets
  • CLI with health checks for HTTP, TCP, TLS certificates, WebSocket and gRPC, and steady echo traffic over HTTP and gRPC
  • Chaining of instances over HTTP and gRPC, each one calls its backends and passes on the trace context, to simulate microservices
  • Health checks (readiness and liveness)

实测星标增长

24小时
-1
7天
+4
15天
+6
1个月
+22

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

podinfo

e2e test cve-scan Docker Pulls slsa Ask DeepWiki

Podinfo is a tiny web application made with Go that showcases best practices of running microservices in Kubernetes. Podinfo is used by CNCF projects like Flux and Flagger for end-to-end testing and workshops.

podinfo-ui

Features

  • HTTP and gRPC API for testing clients, proxies and service meshes: echo, headers, status codes, delays, chunked responses and WebSockets
  • CLI with health checks for HTTP, TCP, TLS certificates, WebSocket and gRPC, and steady echo traffic over HTTP and gRPC
  • Chaining of instances over HTTP and gRPC, each one calls its backends and passes on the trace context, to simulate microservices
  • Health checks (readiness and liveness)
  • Graceful shutdown on interrupt signals
  • File watcher for secrets and configmaps
  • Instrumented with Prometheus and OpenTelemetry (traces, metrics and logs over OTLP)
  • Structured logging with zap
  • 12-factor app with viper
  • Fault injection (random errors and latency) on HTTP and gRPC
  • JWT issuer and validator for testing meshes and gateways, with RSA, EC and HMAC keys, JWKS and key rotation
  • TLS and SPIFFE mTLS on the HTTPS and gRPC ports, with X.509 SVIDs from the SPIFFE Workload API
  • Redis and Valkey cache in standalone, Cluster and Sentinel mode, with TLS and mTLS
  • Web UI embedded in the binary, with no external requests
  • Swagger UI at /swagger/
  • Timoni, Helm and Kustomize installers
  • End-to-End testing with Kubernetes Kind and Helm
  • Multi-arch container image with Docker buildx and GitHub Actions
  • Container image signing with Sigstore cosign
  • SBOMs and SLSA Provenance embedded in the container image
  • CVE scanning with govulncheck

Guides

Install

To install Podinfo on Kubernetes the minimum required version is Kubernetes v1.23 with Helm and Kustomize, and Kubernetes v1.25 with Timoni.

Timoni

Install with Timoni:

timoni -n default apply podinfo oci://ghcr.io/stefanprodan/modules/podinfo

Helm

helm upgrade --install --wait podinfo --namespace default \
oci://ghcr.io/stefanprodan/charts/podinfo

Kustomize

kubectl apply -k github.com/stefanprodan/podinfo//kustomize

Docker

docker run -dp 9898:9898 stefanprodan/podinfo

See the install guide for the Helm repository, a frontend with a backend and a cache, and continuous delivery with Flux.

Microservices simulation

Podinfo instances chained over HTTP and gRPC make a small microservice application out of one image. The microservices example runs a weather service of seven instances, a Redis cache and two client apps that keep steady HTTP and gRPC traffic on it. Slow down, break or scale any service, and see how a gateway, a service mesh or a progressive delivery tool handles it on the traffic map.

podinfo-ui-microservices

kubectl apply -k github.com/stefanprodan/podinfo//deploy/microservices

See the microservices guide for the experiments.

License

Podinfo is licensed under the Apache License 2.0.

探索相关项目

加载中…