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
cfbd2e45
Commit
cfbd2e45
authored
Oct 27, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
13af585c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
142 additions
and
144 deletions
+142
-144
yamls/kong/kong-proxy-db.yaml
+142
-144
No files found.
yamls/kong/kong-proxy-db.yaml
View file @
cfbd2e45
...
@@ -9,22 +9,22 @@ metadata:
...
@@ -9,22 +9,22 @@ metadata:
spec
:
spec
:
#externalTrafficPolicy: Local
#externalTrafficPolicy: Local
ports
:
ports
:
-
name
:
proxy
-
name
:
proxy
port
:
80
port
:
80
protocol
:
TCP
protocol
:
TCP
targetPort
:
8000
targetPort
:
8000
nodePort
:
26981
nodePort
:
26981
-
name
:
proxy-ssl
-
name
:
proxy-ssl
port
:
443
port
:
443
protocol
:
TCP
protocol
:
TCP
targetPort
:
8443
targetPort
:
8443
-
name
:
admin-url
-
name
:
admin-url
port
:
8001
port
:
8001
protocol
:
TCP
protocol
:
TCP
targetPort
:
8001
targetPort
:
8001
-
name
:
promscratch
-
name
:
promscratch
port
:
9542
port
:
9542
protocol
:
TCP
protocol
:
TCP
selector
:
selector
:
app
:
ingress-dbkong
app
:
ingress-dbkong
type
:
NodePort
type
:
NodePort
...
@@ -36,10 +36,10 @@ metadata:
...
@@ -36,10 +36,10 @@ metadata:
namespace
:
kong
namespace
:
kong
spec
:
spec
:
ports
:
ports
:
-
name
:
webhook
-
name
:
webhook
port
:
443
port
:
443
protocol
:
TCP
protocol
:
TCP
targetPort
:
8080
targetPort
:
8080
selector
:
selector
:
app
:
ingress-dbkong
app
:
ingress-dbkong
---
---
...
@@ -65,133 +65,131 @@ spec:
...
@@ -65,133 +65,131 @@ spec:
app
:
ingress-dbkong
app
:
ingress-dbkong
spec
:
spec
:
containers
:
containers
:
-
env
:
-
env
:
-
name
:
KONG_DATABASE
-
name
:
KONG_DATABASE
value
:
postgres
value
:
postgres
-
name
:
KONG_PG_HOST
-
name
:
KONG_PG_HOST
value
:
kong-dbservice
value
:
kong-dbservice
-
name
:
KONG_PG_DATABASE
-
name
:
KONG_PG_DATABASE
value
:
kong
value
:
kong
-
name
:
KONG_PG_USER
-
name
:
KONG_PG_USER
value
:
kong
value
:
kong
-
name
:
KONG_PG_PASSWORD
-
name
:
KONG_PG_PASSWORD
value
:
"
123456"
value
:
kong
-
name
:
KONG_PG_PORT
-
name
:
KONG_PG_PORT
value
:
"
5432"
value
:
"
5432"
-
name
:
KONG_NGINX_WORKER_PROCESSES
-
name
:
KONG_NGINX_WORKER_PROCESSES
value
:
"
1"
value
:
"
1"
-
name
:
KONG_NGINX_HTTP_INCLUDE
-
name
:
KONG_NGINX_HTTP_INCLUDE
value
:
/kong/servers.conf
value
:
/kong/servers.conf
-
name
:
KONG_ADMIN_ACCESS_LOG
-
name
:
KONG_ADMIN_ACCESS_LOG
value
:
/dev/stdout
value
:
/dev/stdout
-
name
:
KONG_ADMIN_ERROR_LOG
-
name
:
KONG_ADMIN_ERROR_LOG
value
:
/dev/stderr
value
:
/dev/stderr
-
name
:
KONG_ADMIN_LISTEN
-
name
:
KONG_ADMIN_LISTEN
value
:
0.0.0.0:8001, 0.0.0.0:8444 ssl
value
:
0.0.0.0:8001, 0.0.0.0:8444 ssl
-
name
:
KONG_PROXY_LISTEN
-
name
:
KONG_PROXY_LISTEN
value
:
0.0.0.0:8000, 0.0.0.0:8443 ssl http2
value
:
0.0.0.0:8000, 0.0.0.0:8443 ssl http2
image
:
registry.cn-beijing.aliyuncs.com/hantang2/imgshare:777.77.10
image
:
registry.cn-beijing.aliyuncs.com/hantang2/imgshare:777.77.10
imagePullPolicy
:
IfNotPresent
imagePullPolicy
:
IfNotPresent
lifecycle
:
lifecycle
:
preStop
:
preStop
:
exec
:
exec
:
command
:
command
:
-
/bin/sh
-
/bin/sh
-
-c
-
-c
-
kong quit
-
kong quit
livenessProbe
:
livenessProbe
:
failureThreshold
:
3
failureThreshold
:
3
httpGet
:
httpGet
:
path
:
/health
path
:
/health
port
:
9001
port
:
9001
scheme
:
HTTP
scheme
:
HTTP
initialDelaySeconds
:
30
initialDelaySeconds
:
30
periodSeconds
:
10
periodSeconds
:
10
successThreshold
:
1
successThreshold
:
1
timeoutSeconds
:
1
timeoutSeconds
:
1
name
:
proxy
ports
:
-
containerPort
:
8000
name
:
proxy
name
:
proxy
protocol
:
TCP
ports
:
-
containerPort
:
8443
-
containerPort
:
8000
name
:
proxy-ssl
name
:
proxy
protocol
:
TCP
protocol
:
TCP
-
containerPort
:
8001
-
containerPort
:
8443
name
:
admin-url
name
:
proxy-ssl
protocol
:
TCP
protocol
:
TCP
-
containerPort
:
9542
-
containerPort
:
8001
name
:
metrics
name
:
admin-url
protocol
:
TCP
protocol
:
TCP
readinessProbe
:
-
containerPort
:
9542
failureThreshold
:
3
name
:
metrics
httpGet
:
protocol
:
TCP
path
:
/health
readinessProbe
:
port
:
9001
failureThreshold
:
3
scheme
:
HTTP
httpGet
:
periodSeconds
:
10
path
:
/health
successThreshold
:
1
port
:
9001
timeoutSeconds
:
1
scheme
:
HTTP
securityContext
:
periodSeconds
:
10
runAsUser
:
1000
successThreshold
:
1
volumeMounts
:
timeoutSeconds
:
1
-
mountPath
:
/kong
securityContext
:
name
:
kong-server-blocks
runAsUser
:
1000
resources
:
volumeMounts
:
requests
:
-
mountPath
:
/kong
cpu
:
100m
name
:
kong-server-blocks
memory
:
512Mi
resources
:
limits
:
requests
:
cpu
:
500m
cpu
:
100m
memory
:
2500Mi
memory
:
512Mi
-
args
:
limits
:
-
/kong-ingress-controller
cpu
:
500m
-
--kong-url=https://localhost:8444
memory
:
2500Mi
-
--admin-tls-skip-verify
-
args
:
-
--publish-service=kong/kong-dbproxy
-
/kong-ingress-controller
env
:
-
--kong-url=https://localhost:8444
-
name
:
POD_NAME
-
--admin-tls-skip-verify
valueFrom
:
-
--publish-service=kong/kong-dbproxy
fieldRef
:
env
:
apiVersion
:
v1
-
name
:
POD_NAME
fieldPath
:
metadata.name
valueFrom
:
-
name
:
POD_NAMESPACE
fieldRef
:
valueFrom
:
apiVersion
:
v1
fieldRef
:
fieldPath
:
metadata.name
apiVersion
:
v1
-
name
:
POD_NAMESPACE
fieldPath
:
metadata.namespace
valueFrom
:
image
:
registry.cn-beijing.aliyuncs.com/hantang2/staticngnix:ingctl
fieldRef
:
imagePullPolicy
:
IfNotPresent
apiVersion
:
v1
livenessProbe
:
fieldPath
:
metadata.namespace
failureThreshold
:
3
image
:
registry.cn-beijing.aliyuncs.com/hantang2/staticngnix:ingctl
httpGet
:
imagePullPolicy
:
IfNotPresent
path
:
/healthz
livenessProbe
:
port
:
10254
failureThreshold
:
3
scheme
:
HTTP
httpGet
:
periodSeconds
:
10
path
:
/healthz
successThreshold
:
1
port
:
10254
timeoutSeconds
:
1
scheme
:
HTTP
name
:
ingress-controller
periodSeconds
:
10
ports
:
successThreshold
:
1
-
containerPort
:
8080
timeoutSeconds
:
1
name
:
webhook
name
:
ingress-controller
protocol
:
TCP
ports
:
readinessProbe
:
-
containerPort
:
8080
failureThreshold
:
3
name
:
webhook
httpGet
:
protocol
:
TCP
path
:
/healthz
readinessProbe
:
port
:
10254
failureThreshold
:
3
scheme
:
HTTP
httpGet
:
periodSeconds
:
10
path
:
/healthz
successThreshold
:
1
port
:
10254
timeoutSeconds
:
1
scheme
:
HTTP
periodSeconds
:
10
successThreshold
:
1
timeoutSeconds
:
1
serviceAccountName
:
kong-serviceaccount
serviceAccountName
:
kong-serviceaccount
volumes
:
volumes
:
-
configMap
:
-
configMap
:
name
:
kong-server-blocks
name
:
kong-server-blocks
name
:
kong-server-blocks
name
:
kong-server-blocks
#docker run --rm -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=10.254.220.170" -e "KONG_PG_PORT=5432" -e "KONG_PG_DATABASE=kong" -e "KONG_PG_USER=kong" -e "KONG_PG_PASSWORD=kong" kong:2.0 kong migrations bootstrap
#docker run --rm -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=10.254.220.170" -e "KONG_PG_PORT=5432" -e "KONG_PG_DATABASE=kong" -e "KONG_PG_USER=kong" -e "KONG_PG_PASSWORD=kong" kong:2.0 kong migrations bootstrap
# docker run --rm -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=10.254.220.170" -e "KONG_PG_PORT=5432" -e "KONG_PG_DATABASE=kong" -e "KONG_PG_USER=kong" -e "KONG_PG_PASSWORD=kong" kong:2.0 kong migrations up
# docker run --rm -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=10.254.220.170" -e "KONG_PG_PORT=5432" -e "KONG_PG_DATABASE=kong" -e "KONG_PG_USER=kong" -e "KONG_PG_PASSWORD=kong" kong:2.0 kong migrations up
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