内网 k8s 中使用 traefik 作为 ingress(一)
目标 traefik 服务正常启动 部署 nginx 部署测速后可访问 环境准备 kubectl helm 安装 traefik 参考 官方文档 安装教程 注册仓库 helm repo add traefik https://traefik.github.io/charts helm repo update 部署 从 helm chart 市场下载一份默认值的 yaml 文件进行修改: 命名为 traefick-values.yml, 着重修改以下地方: ports: web: # 重定向 http -> https redirectTo: websecure websecure: tls: enabled: true service: externalIPs: # 对于内网环境, 部署 traefik 会卡在 externalIP 为 pending 的状态, 此处需要显式声明 IP 地址 - 192.168.x.x # 作为默认的 ingress, 替换已有的 ingress ingressClass: enabled: true isDefaultClass: true 执行命令以部署:...