Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k8syml
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
k8syml
Commits
9c603367
Commit
9c603367
authored
Mar 06, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
4ac1d8f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
yamls/kong/demoplugin.yaml
+4
-2
No files found.
yamls/kong/demoplugin.yaml
View file @
9c603367
...
@@ -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"}}}'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment