大白菜

  • 优惠汇总
  • linux闲谈
  • shell脚本
  • PHP编程
  • nginx
  • 随笔
分享你我
  1. 首页
  2. K8S
  3. 正文

Traefik的ingressRoute的使用

2023年12月6日 296点热度 0人点赞 0条评论

之前一直都是用ingress

了解了一下Traefik中的ingressRoute

其实Traefik也支持ingress

后来我调查了一下

ingressRoute和ingress其实差不多

但是多了一个证书解析器

输入相关的配置就可以自动去管理证书

包括对证书的申请,续期的功能

很强大,但是暂时用不到

下面是我简单的用了一下IngressRoute的功能

因为我这里用到了https

所以实现要把两个证书相关文件做成secerts

kubectl create secret tls traefik-cert --cert=tls.crt --key=tls.key  -n traefik
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: traefik-ingress
  namespace: traefik
spec:
  entryPoints:
    - web
    - websecure
  routes:
  - match: Host(`www.123.cn`) && PathPrefix(`/`)
    kind: Rule
    services:
    - name: backend
      port: 80
  - match: Host(`123.cn`) && PathPrefix(`/`)
    kind: Rule
    services:
    - name: backend
      port: 80
  tls:
    secretName: traefik-cert

标签: traefik
最后更新:2023年12月6日

bai

这个人很懒,什么都没留下

点赞

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复
  • 2025 年 2 月
  • 2025 年 1 月
  • 2024 年 12 月
  • 2024 年 11 月
  • 2023 年 12 月
  • 2020 年 5 月
  • 2020 年 4 月

jquery LINUX nginx php SSL tls安全 traefik 输入法

  • wordpress抓取缩略图
  • wordpress裁剪缩略图
  • fstab自动挂载防止无法启动
  • web程序请求头安全加固
  • 提升SSL协议安全性
最近评论
一位WordPress评论者 发布于 5 年前(04月03日) 嗨,这是一条评论。 要开始审核、编辑及删除评论,请访问仪表盘的“评论”页面。 评论者头像来自Grav...

COPYRIGHT © 2020-2025 大白菜的博客. ALL RIGHTS RESERVED.

冀ICP备18004313号-1