-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployGUI-React.yaml
56 lines (55 loc) · 1.25 KB
/
deployGUI-React.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: knee-trainer-app-client
namespace: knee-trainer
spec:
replicas: 1
selector:
matchLabels:
app: knee-trainer-app-client
env: dev
template:
metadata:
labels:
app: knee-trainer-app-client
env: dev
spec:
containers:
- name: knee-trainer-app-client
image: registry.moglidev.xyz/kneetrainer-app-client:dev1.1
ports:
- containerPort: 3000
# volumeMounts:
# - mountPath: /usr/src/app
# name: knee-trainer-client-pvc
env:
- name: REACT_APP_API_URL
value: knee-trainer-api-svc.knee-trainer.svc.cluster.local
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "1000m"
# volumes:
# - name: knee-trainer-client-pvc
# persistentVolumeClaim:
# claimName: knee-trainer-client-pvc
imagePullSecrets:
- name: registry-moglidev-secret
---
apiVersion: v1
kind: Service
metadata:
name: knee-trainer-app-svc
spec:
type: LoadBalancer
selector:
app: knee-trainer-app-client
env: dev
ports:
- protocol: TCP
port: 3000
targetPort: 3000