一、配置https强跳
在ingress里添加:
```
metadata:
annotations:
konghq.com/protocols: https
konghq.com/https-redirect-status-code: "301"
```
二、ip限制
1.配置kongplugin
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: phpfpm-test
config:
whitelist:
- 10.22.221.32
plugin: ip-restriction
2.将这个kong插件应用到对应的ingress里面
```
metadata:
annotations:
kubernetes.io/ingress.class: kong
konghq.com/plugins: phpfpm-test
```
注意,这边限制的ip是直接连到kong的ip,如果kong是通过nodeport暴露的,那么这个地址就是对应的node的k8s地址