解决 the “listen … http2” directive is deprecated
错误
| 1 | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead |
解决方法
检查现有配置形式如:
| 1 2 | server { listen 443 ssl http2; |
修复:nginx >= 1.25.1 的新格式为
| 1 2 3 | server { listen 443 ssl; http2 on; |
更多参考:https://github.com/nginxinc/kubernetes-ingress/issues/4237