-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-dev.yaml
47 lines (47 loc) · 1.15 KB
/
k8s-dev.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
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
name: fecamp-2021-frontend
namespace: dev
labels:
app: fecamp-2021-frontend
spec:
replicas: 1
selector:
matchLabels:
app: fecamp-2021-frontend
template:
metadata:
labels:
app: fecamp-2021-frontend
spec:
containers:
- name: fecamp-2021-frontend
image: ghcr.io/fecamp-cu/fe-2021-frontend:dev
imagePullPolicy: Always
ports:
- containerPort: 3000
env:
- name: REACT_APP_API_URL
valueFrom:
configMapKeyRef:
name: fecamp-config
key: api_url
- name: REACT_APP_OMISE_PUBLIC_KEY
valueFrom:
secretKeyRef:
name: omise-secret
key: public_key
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 3
periodSeconds: 3
resources:
requests:
cpu: 15m
memory: 25Mi
limits:
cpu: 50m
memory: 100Mi