This repository has been archived by the owner on Mar 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathkong-dbless.yaml
101 lines (101 loc) · 2.43 KB
/
kong-dbless.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: kong
name: kong-dbless
labels:
app: kong-dbless
spec:
selector:
matchLabels:
app: kong-dbless
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: kong-dbless
spec:
containers:
- name: hupit
image: hbagdi/hupit:v0.1.0
command: [ "hupit", "--file", "/kong", "--command", "curl -v http://localhost:8001/config -F 'config=@/kong/declarative.yaml'"]
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 8042
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 8042
volumeMounts:
- name: kongdeclarative
mountPath: /kong
- name: kong-dbless
image: kong
imagePullPolicy: IfNotPresent
env:
- name: KONG_DATABASE
value: 'off'
- name: KONG_NGINX_WORKER_PROCESSES
value: "1"
- name: KONG_LOG_LEVEL
value: notice
- name: KONG_ADMIN_ACCESS_LOG
value: /dev/stdout
- name: KONG_PROXY_ERROR_LOG
value: /dev/stderr
- name: KONG_ADMIN_ERROR_LOG
value: /dev/stderr
- name: KONG_ADMIN_LISTEN
value: '127.0.0.1:8001'
- name: KONG_PROXY_LISTEN
value: 0.0.0.0:8000,0.0.0.0:8443 ssl
- name: KONG_DECLARATIVE_CONFIG
value: /kong/declarative.yaml
volumeMounts:
- name: kongdeclarative
mountPath: /kong
ports:
- name: data-http
containerPort: 8000
- name: data-https
containerPort: 8443
readinessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 15
periodSeconds: 20
volumes:
- name: kongdeclarative
configMap:
name: kongdeclarative
---
apiVersion: v1
kind: Service
metadata:
namespace: kong
name: kong-dbless
spec:
type: NodePort
ports:
- name: kong-proxy-http
port: 8000
targetPort: 8000
protocol: TCP
- name: kong-proxy-https
port: 8443
targetPort: 8443
protocol: TCP
selector:
app: kong-dbless