对齐文件规范
This commit is contained in:
25
ansible/files/03-10/traefik-custom-ports.yaml
Normal file
25
ansible/files/03-10/traefik-custom-ports.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
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 # 对外映射端口
|
||||
Reference in New Issue
Block a user