Files
Deploy-Laboratory/ansible/files/03-10-traefik-custom-ports/traefik-custom-ports.yaml
jack 8c43761962 feat: 按 doc_id 重组 ansible/files 与验证框架
- ansible/files 改为与文档 XX-YY 对齐的目录结构,更新相关 playbook 路径
- 新增 scripts/verify.sh 与 ansible/playbooks/verify/*.yml,移除单体 verify-matrix.yml
- 补充 docs/00-02 矩阵状态、00-05 验证框架与流程、00-04 环境与 ylc65 工作机说明
- 增加 k3s 存储准备、Longhorn、local-path 等 playbook 与辅助脚本

Made-with: Cursor
2026-03-26 07:01:14 +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 # 对外映射端口