forked from bcgov/zeva
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-frontend.yaml
58 lines (58 loc) · 1.49 KB
/
k8s-frontend.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
apiVersion: v1
kind: Service
metadata:
name: frontend
spec:
selector:
app: frontend
ports:
- port: 5001
targetPort: 5001
name: 'web'
- port: 5002
targetPort: 5002
name: 'websocket-notifications'
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 1
minReadySeconds: 20
template:
metadata:
name: frontend-pod
labels:
app: frontend
spec:
containers:
- name: frontend
image: frontend
ports:
- containerPort: 5001
- containerPort: 5002
env:
- name: KEYCLOAK_CERTS_URL
value: 'http://keycloak:8080/auth/realms/zeva/protocol/openid-connect/certs'
- name: KEYCLOAK_REALM
value: 'http://localhost:8888/auth/realms/zeva'
- name: KEYCLOAK_AUTHORITY
value: 'http://localhost:8888/auth/realms/zeva'
- name: KEYCLOAK_ISSUER
value: 'http://localhost:8888/auth/realms/zeva'
- name: KEYCLOAK_URL
value: 'http://localhost:8888/auth'
- name: KEYCLOAK_AUDIENCE
value: 'zeva-app'
- name: KEYCLOAK_CLIENT_ID
value: 'zeva-app'
- name: KEYCLOAK_REALM_NAME
value: 'zeva'
- name: RABBITMQ_ENABLED
value: 'False'
- name: APIBASE
value: 'http://localhost:10000/api'
selector:
matchLabels:
app: frontend