stefanprodan/podinfo
Sobre
Template de microsserviço em Go para Kubernetes
Sistemas e infraestruturaO que você pode fazer
- 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)
Crescimento medido de estrelas
- em 24 h
- -1
- em 7 dias
- +4
- em 15 dias
- +6
- em 1 mês
- +22
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Originalpodinfo
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.

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
- Getting started with Timoni
- Getting started with Flux
- Progressive Delivery with Flagger and Linkerd
- Automated canary deployments with Kubernetes Gateway API
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.

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.
Explore projetos relacionados
Carregando…