-
Notifications
You must be signed in to change notification settings - Fork 1
/
08-konga-galeraMariaDB.yaml
59 lines (58 loc) · 1.17 KB
/
08-konga-galeraMariaDB.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
##### Konga LoadBalancer Service #####
# ---
apiVersion: v1
kind: Service
metadata:
name: konga-webui
namespace: kong-appgw
spec:
type: LoadBalancer
loadBalancerSourceRanges:
- 0.0.0.0/0
ports:
- name: konga-webui
port: 80
targetPort: 1337
protocol: TCP
# - name: konga-webui-ssl
# port: 443
# targetPort: 1337
# protocol: TCP
selector:
app: konga
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: konga
namespace: kong-appgw
spec:
replicas: 1
template:
metadata:
labels:
app: konga
spec:
containers:
- name: konga
image: pantsel/konga:next
env:
- name: NODE_ENV
valueFrom:
configMapKeyRef:
name: kong-configmap
key: konga_node_env
- name: TOKEN_SECRET
valueFrom:
configMapKeyRef:
name: kong-configmap
key: konga_token_secret
- name: DB_URI
valueFrom:
configMapKeyRef:
name: kong-configmap
key: konga_db_uri
ports:
- name: webui
containerPort: 1337
protocol: TCP