使用helm安装traefik程序 traefik安装
(1)上传并解压baimei-traefik.tar.gz资源清单
tracefik: https://url69.ctfile.com/d/253469-56657822-1f754e?p=2206 (访问密码: 2206)
docker load -i baimei-traefik_v2.9.10.tar.gz
docker images
打标签 然后 push
docke tag
docker push harbor.baimei.com/baimei-traefik/traefik:v2.9.10
(2)安装服务
修改
vim traefik/values.yaml
[root@master231 traefik]# helm install traefik traefik # 一定不要在 traefik 文件夹内部安装
检查:
helm list
(3)开启traefik的端口转发功能
为了安全起见,helm默认没有开启dashboar,因此需要运维手动暴露
[root@k8s231.traefik]# kubectl port-forward `kubectl get pods -l "app.kubernetes.io/name=traefik" -o name` --address=0.0.0.0 9000:9000
(4)访问traefik的dashboard页面
如果打不开,将6步骤重新执行下试试看
http://10.0.0.231:9000/dashboard/
看到 界面这一步,说明成功了。
如果 是报错:
error: TYPE/NAME and list of ports are required for port-forward
See 'kubectl port-forward -h' for help and examples
解决方案: 先卸载,再重装:
[root@master231 /manifests]#helm uninstall traefik
release "traefik" uninstalled
[root@master231 /manifests]#helm install traefik traefik/traefik
NAME: traefik
LAST DEPLOYED: Mon Jun 26 22:59:09 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Traefik Proxy v2.9.10 has been deployed successfully
参考链接:
https://doc.traefik.io/traefik/getting-started/install-traefik/#use-the-helm-chart
欢迎来撩 : 汇总all