Commit 9c603367 by 蒋勇

d

parent 4ac1d8f6
...@@ -2,6 +2,7 @@ apiVersion: configuration.konghq.com/v1 ...@@ -2,6 +2,7 @@ apiVersion: configuration.konghq.com/v1
kind: KongPlugin kind: KongPlugin
metadata: metadata:
name: add-response-header name: add-response-header
namespace: zhichan
config: config:
add: add:
headers: headers:
...@@ -9,4 +10,6 @@ config: ...@@ -9,4 +10,6 @@ config:
plugin: response-transformer plugin: response-transformer
# kubectl patch ingress demo -p '{"metadata":{"annotations":{"plugins.konghq.com":"add-response-header"}}}' # kubectl patch ingress demo -p '{"metadata":{"annotations":{"plugins.konghq.com":"add-response-header"}}}'
# 把插件应用到某个ingress--route/service # 把插件应用到某个ingress--route/service
\ No newline at end of file # kubectl patch ingress fktaxctl-ingress -p '{"metadata":{"annotations":{"plugins.konghq.com":"add-response-header"}}}'
# kubectl patch service fktaxctl-service -p '{"metadata":{"annotations":{"plugins.konghq.com":"add-response-header"}}}'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment