-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresources.yaml
More file actions
49 lines (48 loc) · 1.06 KB
/
resources.yaml
File metadata and controls
49 lines (48 loc) · 1.06 KB
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
---
apiVersion: v1
kind: Service
metadata:
name: frontend
spec:
type: LoadBalancer
selector:
app: frontend
ports:
- port: 80
targetPort: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 1
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
# Replace $LOCATION with your Artifact Registry location (e.g., us-west1).
# Replace $GCLOUD_PROJECT with your project ID.
image: us-central1-docker.pkg.dev/gke-project-423206/frontend/react_app:1.0
#imagePullPolicy: Always
# This app listens on port 8080 for web traffic by default.
# ports:
# - containerPort: 3000
env:
- name: PORT
value: "3000"
- name: REACT_APP_URL
value: "http://backend:8080"
resources:
requests:
memory: 256Mi
cpu: "0.2"
limits:
memory: 512Mi
cpu: "1"