-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathportal-frontend.yaml
58 lines (58 loc) · 1.53 KB
/
portal-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: ServiceAccount
metadata:
name: portal-frontend
namespace: gloo-mesh-addons
---
apiVersion: v1
kind: Service
metadata:
name: portal-frontend
namespace: gloo-mesh-addons
labels:
app: portal-frontend
service: portal-frontend
spec:
ports:
- name: http
port: 4000
targetPort: 4000
selector:
app: portal-frontend
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: portal-frontend
namespace: gloo-mesh-addons
spec:
replicas: 1
selector:
matchLabels:
app: portal-frontend
template:
metadata:
labels:
app: portal-frontend
spec:
serviceAccountName: portal-frontend
containers:
#- image: kcbabo/portal-frontend-nick:latest
- image: duncandoyle/portal-frontend:1.0.3
args: ["--host", "0.0.0.0"]
#imagePullPolicy: Always
imagePullPolicy: IfNotPresent
name: portal-frontend
ports:
- containerPort: 4000
env:
- name: "VITE_PORTAL_SERVER_URL"
value: "http://developer.example.com/v1/"
- name: "VITE_CLIENT_ID"
value: "portal-client"
- name: "VITE_TOKEN_ENDPOINT"
value: "http://keycloak.example.com/realms/master/protocol/openid-connect/token"
- name: "VITE_AUTH_ENDPOINT"
value: "http://keycloak.example.com/realms/master/protocol/openid-connect/auth"
- name: "VITE_LOGOUT_ENDPOINT"
value: "http://keycloak.example.com/realms/master/protocol/openid-connect/logout"