-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
41 lines (40 loc) · 892 Bytes
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: mydeployaldomatic
labels:
app: node-app
spec:
revisionHistoryLimit: 0
replicas: 2
minReadySeconds: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
selector:
matchLabels:
app: node-app
template:
metadata:
labels:
app: node-app
spec:
containers:
- name: node-app-image
image: ghcr.io/aldomatic/docker-image-host-github
imagePullPolicy: Always
ports:
- containerPort: 3000
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
resources:
# Specifying the resourses that we might need for our application
limits:
memory: "128Mi"
cpu: "0.5m"