-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloghme-back.yaml
More file actions
47 lines (47 loc) · 922 Bytes
/
loghme-back.yaml
File metadata and controls
47 lines (47 loc) · 922 Bytes
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: loghme-backend
spec:
replicas: 2
selector:
matchLabels:
app: loghme-backend
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: loghme-backend
spec:
containers:
- name: loghme-backend
image: aminhoseinorg/loghme-backend:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
limits:
cpu: 0.2
memory: 200Mi
# requests:
# cpu: 185m
# memory: 185Mi
restartPolicy: Always
---
kind: Service
apiVersion: v1
metadata:
name: loghme-backend
spec:
type: NodePort
ports:
- port: 8080
targetPort: 8080
protocol: TCP
nodePort: 31885
selector:
app: loghme-backend