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
d2226fc2
Commit
d2226fc2
authored
Mar 07, 2020
by
王昆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.gongsibao.com:jiangyong/k8syml
parents
73669d35
66c1856d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
yamls/kong/demoplugin.yaml
+15
-0
yamls/kong/kong-ingress-dbless.yaml
+0
-1
yamls/zhichan/center-channel-deployment.yaml
+1
-1
yamls/zhichan/fktaxctl-deployment.yaml
+2
-0
No files found.
yamls/kong/demoplugin.yaml
0 → 100644
View file @
d2226fc2
apiVersion
:
configuration.konghq.com/v1
kind
:
KongPlugin
metadata
:
name
:
add-response-header
namespace
:
chaolai
config
:
add
:
headers
:
-
"
demo:
injected-by-kong"
plugin
:
response-transformer
# kubectl patch ingress demo -p '{"metadata":{"annotations":{"plugins.konghq.com":"add-response-header"}}}'
# 把插件应用到某个ingress--route/service
# 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"}}}'
yamls/kong/kong-ingress-dbless.yaml
View file @
d2226fc2
...
@@ -522,7 +522,6 @@ spec:
...
@@ -522,7 +522,6 @@ spec:
-
env
:
-
env
:
-
name
:
KONG_DATABASE
-
name
:
KONG_DATABASE
value
:
"
off"
value
:
"
off"
-
name
:
KONG_NGINX_WORKER_PROCESSES
-
name
:
KONG_NGINX_WORKER_PROCESSES
value
:
"
1"
value
:
"
1"
-
name
:
KONG_NGINX_HTTP_INCLUDE
-
name
:
KONG_NGINX_HTTP_INCLUDE
...
...
yamls/zhichan/center-channel-deployment.yaml
View file @
d2226fc2
...
@@ -18,7 +18,7 @@ spec:
...
@@ -18,7 +18,7 @@ spec:
restartPolicy
:
Always
restartPolicy
:
Always
containers
:
containers
:
-
name
:
center-channel
-
name
:
center-channel
image
:
registry.cn-beijing.aliyuncs.com/hantang2/imgshare:80.0.
9
image
:
registry.cn-beijing.aliyuncs.com/hantang2/imgshare:80.0.
34
imagePullPolicy
:
IfNotPresent
imagePullPolicy
:
IfNotPresent
ports
:
ports
:
-
containerPort
:
80
-
containerPort
:
80
...
...
yamls/zhichan/fktaxctl-deployment.yaml
View file @
d2226fc2
...
@@ -97,6 +97,8 @@ metadata:
...
@@ -97,6 +97,8 @@ metadata:
app
:
fktaxctl-service
app
:
fktaxctl-service
name
:
fktaxctl-service
name
:
fktaxctl-service
namespace
:
chaolai
namespace
:
chaolai
annotations
:
plugins.konghq.com
:
add-response-header
#应用插件到服务
spec
:
spec
:
type
:
NodePort
type
:
NodePort
ports
:
ports
:
...
...
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