V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
buaacss
V2EX  ›  程序员

给 kong 加上 fastcgi 协议,直接转发给 PHP 微服务

  •  
  •   buaacss ·
    roodkcab · 2020-07-17 13:17:01 +08:00 · 2044 次点击
    这是一个创建于 1350 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我司是重度 php 用户,自从用上 k8s 一直迫于在 pod 中加一层 nginx,结果一个简单的请求链路就变成 kong - nginx - php-fpm 。给 kong 加了一个 fcgi 协议的支持,但是迫于 pr 没有被合并,只好自己维护一个分支

    pr 在这里,支持的话还请大家帮忙 vote 一下,以便 kong 团队了解 fcgi 协议还是有很大市场的
    https://github.com/Kong/kong/pull/5642

    branch 在这里,喜欢的话给个星星,可以帮忙在 k8s 部署使用哦
    https://github.com/roodkcab/kong/tree/fastcgi
    https://github.com/roodkcab/kubernetes-ingress-controller/tree/fastcgi
    7 条回复    2021-04-06 19:04:12 +08:00
    mudone
        1
    mudone  
       2020-07-17 13:37:58 +08:00
    挺好的,支持楼主一记,看上去官方并不打算把 fastcgi 支持加进去。
    buaacss
        2
    buaacss  
    OP
       2020-07-17 15:38:00 +08:00
    @mudone 感谢支持!官方应该是把注意力放在其它事情上了,未来可能会用更好的方式支持协议扩展,其实还是挺期待的,硬编码的方式确实不友好,不够够用啦。
    KalaSearch
        3
    KalaSearch  
       2020-07-18 10:39:26 +08:00
    已帮点。楼主这 id 一看就是 buaa 的大帅哥
    buaacss
        4
    buaacss  
    OP
       2020-07-18 12:49:44 +08:00 via iPhone
    @KalaSearch ♥️
    putyy
        5
    putyy  
       2021-04-06 15:49:24 +08:00
    大佬 官方现在还没合并上去吗
    buaacss
        6
    buaacss  
    OP
       2021-04-06 19:03:34 +08:00
    @putyy 还没有,需要的话只能自己 fork 一下用啦
    buaacss
        7
    buaacss  
    OP
       2021-04-06 19:04:12 +08:00
    官方说会考虑增加自定义协议的支持,不过目前看来没人做
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   974 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:19 · PVG 04:19 · LAX 13:19 · JFK 16:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.