Files
Deploy-Laboratory/ansible/files/traefik-custom-ports/traefik-custom-ports.yaml
jack be97836e0d chore: 清理调试脚本并收敛到 Ansible 流程
移除已废弃的调试/验证脚本与空目录,统一文档与脚本说明到 ansible-playbook 的部署方式,避免失效引用和误用路径。

Made-with: Cursor
2026-03-23 19:18:55 +08:00

26 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
apiVersion: helm.cattle.io/v1 # HelmChartConfig 所在的 API 版本
kind: HelmChartConfig # HelmChartConfig用于给 Traefik chart 注入 values
metadata: # 资源标识
name: traefik # chart 对应的 name通常与 Traefik chart 一致)
namespace: kube-system # Traefik chart 运行的命名空间
spec: # 注入 Helm chart 的具体配置
valuesContent: |- # “字符串形式的 YAML”注入到 Helm values由 chart 解析)
ports: # Traefik entrypoints/端口暴露配置
web: # 内置 HTTP entrypoint
expose: true # 启用 web entrypoint 暴露
websecure: # 内置 HTTPS entrypoint
expose: true # 启用 websecure entrypoint 暴露
# 自定义 HTTP 入口(示例 18080
web18080: # 自定义 HTTP entrypoint 名称(示例)
port: 18080 # entrypoint 监听端口(容器端)
expose: # 对外暴露配置
default: true # 默认启用暴露
exposedPort: 18080 # 对外映射端口
# 自定义 HTTPS 入口(示例 18443
websecure18443: # 自定义 HTTPS entrypoint 名称(示例)
port: 18443 # entrypoint 监听端口(容器端)
expose: # 对外暴露配置
default: true # 默认启用暴露
exposedPort: 18443 # 对外映射端口