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
69ad1b80
Commit
69ad1b80
authored
Sep 01, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
10f6803a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
0 deletions
+128
-0
yamls/tx/biz/deliver/book-deployment-test.yaml
+102
-0
yamls/tx/biz/deliver/deliver-ingress-test.yaml
+26
-0
No files found.
yamls/tx/biz/deliver/book-deployment-test.yaml
0 → 100644
View file @
69ad1b80
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
book-deliver
namespace
:
tencent-qifu-test
labels
:
app
:
book-deliver
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
book-deliver
template
:
metadata
:
labels
:
app
:
book-deliver
spec
:
restartPolicy
:
Always
containers
:
-
name
:
book-deliver
#image: pull registry.cn-beijing.aliyuncs.com/hantang2/imgshare:1210.0.1
#image: pull registry.cn-beijing.aliyuncs.com/hantang2/imgshare:1210.0.2
image
:
csighub.tencentyun.com/brg_book/tencent2020:book126001
imagePullPolicy
:
IfNotPresent
ports
:
-
containerPort
:
80
env
:
-
name
:
TZ
value
:
Asia/Shanghai
-
name
:
LANG
value
:
zh_CN.UTF-8
-
name
:
APP_ENV
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
APP_ENV
-
name
:
DB_HOST
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
DB_HOST
-
name
:
DB_PORT
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
DB_PORT
-
name
:
DB_PWD
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
DB_PWD
-
name
:
DB_USER
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
DB_USER
-
name
:
DELIVERY_DB_NAME
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
DELIVERY_DB_NAME
-
name
:
PAAS_REDIS_DB
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
PAAS_REDIS_DB
-
name
:
REDIS_HOST
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
REDIS_HOST
-
name
:
REDIS_PORT
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
REDIS_PORT
-
name
:
REDIS_PWD
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
REDIS_PWD
-
name
:
NODE_PORT
valueFrom
:
configMapKeyRef
:
name
:
zhichan-config
key
:
NODE_PORT
---
kind
:
Service
apiVersion
:
v1
metadata
:
labels
:
app
:
bookdeliver-service
name
:
bookdeliver-service
namespace
:
tencent-qifu-test
spec
:
type
:
ClusterIP
ports
:
-
port
:
80
targetPort
:
80
selector
:
app
:
book-deliver
yamls/tx/biz/deliver/deliver-ingress-test.yaml
View file @
69ad1b80
...
...
@@ -109,3 +109,29 @@ spec:
backend
:
serviceName
:
icpdeliver-service
servicePort
:
80
---
apiVersion
:
extensions/v1beta1
kind
:
Ingress
metadata
:
name
:
bookdeliver-ingress
namespace
:
tencent-qifu-test
annotations
:
configuration.konghq.com
:
kongingress-strip-path
spec
:
rules
:
-
host
:
book-test.brg.tencentyun.com
http
:
paths
:
-
path
:
/
backend
:
serviceName
:
bookdeliver-service
servicePort
:
80
-
path
:
/web
backend
:
serviceName
:
bookdeliver-service
servicePort
:
80
-
path
:
/api
backend
:
serviceName
:
bookdeliver-service
servicePort
:
80
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