我有一个Kong introspection插件,希望introspection url从kubernetes secret中提取数据。这可能吗?
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: oauth2-introspection
namespace: app
annotations:
kubernetes.io/ingress.class: kong
consumerRef:
plugin: oauth2-introspection
config:
introspection_url: **<k8-secret>**
字符串
1条答案
按热度按时间ss2ws0br1#
Kong Ingress Controller允许您使用Kubernetes secret的内容配置插件。
KongPlugin
资源中的configFrom
字段允许您设置指向Kubernetes secret的secretKeyRef
。仅适用于COMPLEX配置,不能单独配置字段。
这个
KongPlugin
定义指向一个名为rate-limit-redis
的秘密,其中包含插件的完整配置:字符串
rate-limit-redis
secret包含字符串形式的完整配置:型
KIC将解析机密,构建完整的配置对象并将其发送到Kong Gateway