# Podinfo
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](https://github.com/fluxcd/flux2)
and [Flagger](https://github.com/fluxcd/flagger)
for end-to-end testing and workshops.
## Installing the Chart
The Podinfo charts are published to
[GitHub Container Registry](https://github.com/stefanprodan/podinfo/pkgs/container/charts%2Fpodinfo)
and signed with [Cosign](https://github.com/sigstore/cosign) & GitHub Actions OIDC.
To install the chart with the release name `my-release` from GHCR:
```console
$ helm upgrade -i my-release oci://ghcr.io/stefanprodan/charts/podinfo
```
To verify a chart with Cosign:
```console
$ cosign verify ghcr.io/stefanprodan/charts/podinfo:<VERSION>
```
Alternatively, you can install the chart from GitHub pages:
```console
$ helm repo add podinfo https://stefanprodan.github.io/podinfo
$ helm upgrade -i my-release podinfo/podinfo
```
The command deploys podinfo on the Kubernetes cluster in the default namespace.
The [configuration](#configuration) section lists the parameters that can be configured during installation.
## Uninstalling the Chart
To uninstall/delete the `my-release` deployment:
```console
$ helm delete my-release
```
The command removes all the Kubernetes components associated with the chart and deletes the release.
## Configuration
The following tables lists the configurable parameters of the podinfo chart and their default values.
| Parameter | Default | Description |
| --------------------------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `replicaCount` | `1` | Desired number of pods |
| `logLevel` | `info` | Log level: `debug`, `info`, `warn`, `error` |
| `backend` | `None` | Echo backend URL |
| `backends` | `[]` | Array of echo backend URLs |
| `cache` | `None` | Redis address in the format `tcp://<host>:<port>` |
| `redis.enabled` | `false` | Create Redis deployment for caching purposes |
| `ui.color` | `#34577c` | UI color |
| `ui.message` | `None` | UI greetings message |
| `ui.logo` | `None` | UI logo |
| `faults.delay` | `false` | Random HTTP response delays between 0 and 5 seconds |
| `faults.error` | `false` | 1/3 chances of a random HTTP response error |
| `faults.unhealthy` | `false` | When set, the healthy state is never reached |
| `faults.unready` | `false` | When set, the ready state is never reached |
| `faults.testFail` | `false` | When set, a helm test is included which always fails |
| `faults.testTimeout` | `false` | When set, a helm test is included which always times out |
| `image.repository` | `stefanprodan/podinfo` | Image repository |
| `image.tag` | `<VERSION>` | Image tag |
| `image.pullPolicy` | `IfNotPresent` | Image pull policy |
| `service.enabled` | `true` | Create a Kubernetes Service, should be disabled when using [Flagger](https://flagger.app) |
| `service.type` | `ClusterIP` | Type of the Kubernetes Service |
| `service.metricsPort` | `9797` | Prometheus metrics endpoint port |
| `service.httpPort` | `9898` | Container HTTP port |
| `service.externalPort` | `9898` | ClusterIP HTTP port |
| `service.grpcPort` | `9999` | ClusterIP gPRC port |
| `service.grpcService` | `podinfo` | gPRC service name |
| `service.nodePort` | `31198` | NodePort for the HTTP endpoint |
| `h2c.enabled` | `false` | Allow upgrading to h2c (non-TLS version of HTTP/2) |
| `extraEnvs` | `[]` | Extra environment variables for the podinfo container |
| `config.path` | `""` | config file path |
| `config.name` | `""` | config file name |
| `extraArgs` | `[]` | Additional command line arguments to pass to podinfo container |
| `hpa.enabled` | `false` | Enables the Kubernetes HPA |
| `hpa.maxReplicas` | `10` | Maximum amount of pods |
| `hpa.cpu` |
没有合适的资源?快使用搜索试试~ 我知道了~
适用于 Kubernetes 的 Go 微服务模板.zip
共324个文件
cue:118个
go:81个
yaml:70个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 3 浏览量
2024-12-03
07:58:34
上传
评论
收藏 428KB ZIP 举报
温馨提示
豆荚信息 Podinfo 是一个用 Go 编写的小型 Web 应用程序,展示了在 Kubernetes 中运行微服务的最佳实践。Flux和Flagger等CNCF 项目使用 Podinfo 进行端到端测试和研讨会。规格健康检查(就绪性和活跃性)中断信号时正常关闭机密和配置图的文件观察器使用 Prometheus 和 Open Telemetry 进行监测使用 zap 进行结构化日志记录带有 viper 的 12 要素应用故障注入(随机错误和延迟)Swagger 文档Timoni、Helm 和 Kustomize 安装程序使用 Kubernetes Kind 和 Helm 进行端到端测试使用 Docker buildx 和 GitHub Actions 的多架构容器映像使用 Sigstore cosign 签署容器镜像容器镜像中嵌入的 SBOM 和 SLSA Provenance使用 Trivy 进行 CVE 扫描Web APIGET /打印运行时信息GET /version打印 podinfo 版本和 git commit ha
资源推荐
资源详情
资源评论
收起资源包目录
适用于 Kubernetes 的 Go 微服务模板.zip (324个子文件)
Dockerfile.base 138B
codesign.cnf 518B
redis.conf 66B
notation.crt 1KB
types_go_gen.cue 340KB
types_go_gen.cue 73KB
types_go_gen.cue 44KB
types_gen.cue 41KB
types_gen.cue 34KB
types_go_gen.cue 32KB
types_gen.cue 30KB
types_go_gen.cue 29KB
types_go_gen.cue 29KB
types_gen.cue 27KB
types_go_gen.cue 27KB
types_go_gen.cue 27KB
types_go_gen.cue 26KB
types_go_gen.cue 26KB
types_gen.cue 25KB
types_jsonschema_go_gen.cue 20KB
types_go_gen.cue 15KB
types_go_gen.cue 12KB
types_go_gen.cue 9KB
types_go_gen.cue 8KB
types_go_gen.cue 8KB
types_go_gen.cue 8KB
annotation_key_constants_go_gen.cue 8KB
types_go_gen.cue 8KB
interfaces_go_gen.cue 7KB
types_gen.cue 7KB
types_go_gen.cue 5KB
types_gen.cue 4KB
types_gen.cue 4KB
metadata.cue 4KB
types_gen.cue 4KB
types_go_gen.cue 4KB
quantity_go_gen.cue 4KB
config.cue 4KB
well_known_labels_go_gen.cue 3KB
types_go_gen.cue 3KB
image.cue 3KB
deployment.cue 3KB
types_go_gen.cue 2KB
types_go_gen.cue 2KB
group_version_go_gen.cue 2KB
test.podinfo.cue 2KB
well_known_taints_go_gen.cue 2KB
nodename_go_gen.cue 2KB
doc_go_gen.cue 1KB
debug_values.cue 1KB
watch_go_gen.cue 1KB
job.cue 1KB
timoni.cue 1KB
meta_go_gen.cue 1KB
types_gen.cue 1KB
requirements.cue 1KB
instance.cue 1KB
semver.cue 1002B
hpa.cue 966B
debug_tool.cue 957B
amount_go_gen.cue 884B
time_proto_go_gen.cue 874B
watch_go_gen.cue 870B
ingress.cue 859B
well_known_labels_go_gen.cue 842B
selector.cue 784B
codec_go_gen.cue 778B
service.cue 772B
intstr_go_gen.cue 727B
patch_go_gen.cue 718B
action.cue 716B
mux_go_gen.cue 625B
helper_go_gen.cue 571B
well_known_annotations_go_gen.cue 464B
time_go_gen.cue 433B
servicemonitor.cue 417B
math_go_gen.cue 410B
doc_go_gen.cue 403B
streamwatcher_go_gen.cue 403B
splice_go_gen.cue 379B
micro_time_go_gen.cue 374B
values.cue 369B
uid_go_gen.cue 355B
swagger_doc_generator_go_gen.cue 348B
duration_go_gen.cue 320B
negotiate_go_gen.cue 303B
doc_go_gen.cue 278B
converter_go_gen.cue 269B
allocator_go_gen.cue 239B
conversion_go_gen.cue 238B
filter_go_gen.cue 237B
doc_go_gen.cue 237B
suffix_go_gen.cue 211B
serviceaccount.cue 205B
namespacedname_go_gen.cue 201B
doc_go_gen.cue 196B
doc_go_gen.cue 186B
register_go_gen.cue 180B
register_go_gen.cue 178B
types_proto_go_gen.cue 177B
共 324 条
- 1
- 2
- 3
- 4
资源评论
赵闪闪168
- 粉丝: 1726
- 资源: 6942
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于TypeScript的数据库实训平台前端设计源码
- 基于SSM框架与微信小程序的图书馆自习室座位预约管理系统设计源码
- 基于SL4J格式的C++日志管理设计源码
- 基于yolov3-tiny-bubbliiiing和Tkinter的实时物体检测界面设计源码
- 基于《JS DOM 编程艺术》(第2版)的JavaScript DOM编程设计源码学习
- ADASIS V2&V3协议
- 基于HTML、JavaScript等技术的全栈前端学习笔记设计源码
- 基于Vue的网易云音乐高仿设计源码
- 基于C语言的串口数据流处理库设计源码
- PTA实验和作业成绩.rar
- 基于SpringBoot+Vue的校园闲置物品租售平台设计源码
- 基于Vue3+AntDesign4的ivzone CRUD组件库及后台管理模板设计源码
- 基于EVE ESI的合同估价与吉他价格计算器设计源码
- 基于Vue-cli3的仿去哪儿旅行APP设计源码
- 基于Windows日志监听的SQLServer登录失败IP黑名单自动添加设计源码
- 基于Java和最新框架的在线课程教育系统设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功