V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
buaacss
V2EX  ›  程序员

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

  •  
  •   buaacss ·
    roodkcab · Jul 17, 2020 · 2982 views
    This topic created in 2113 days ago, the information mentioned may be changed or developed.
    我司是重度 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 replies    2021-04-06 19:04:12 +08:00
    mudone
        1
    mudone  
       Jul 17, 2020
    挺好的,支持楼主一记,看上去官方并不打算把 fastcgi 支持加进去。
    buaacss
        2
    buaacss  
    OP
       Jul 17, 2020
    @mudone 感谢支持!官方应该是把注意力放在其它事情上了,未来可能会用更好的方式支持协议扩展,其实还是挺期待的,硬编码的方式确实不友好,不够够用啦。
    KalaSearch
        3
    KalaSearch  
       Jul 18, 2020
    已帮点。楼主这 id 一看就是 buaa 的大帅哥
    buaacss
        4
    buaacss  
    OP
       Jul 18, 2020 via iPhone
    @KalaSearch ♥️
    putyy
        5
    putyy  
       Apr 6, 2021
    大佬 官方现在还没合并上去吗
    buaacss
        6
    buaacss  
    OP
       Apr 6, 2021
    @putyy 还没有,需要的话只能自己 fork 一下用啦
    buaacss
        7
    buaacss  
    OP
       Apr 6, 2021
    官方说会考虑增加自定义协议的支持,不过目前看来没人做
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2235 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 00:43 · PVG 08:43 · LAX 17:43 · JFK 20:43
    ♥ Do have faith in what you're doing.