forked from pxlprfct/node-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDeployment.yaml
More file actions
51 lines (51 loc) · 1.22 KB
/
Deployment.yaml
File metadata and controls
51 lines (51 loc) · 1.22 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
50
51
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-starter
spec:
replicas: 1
selector:
matchLabels:
app: node-starter
template:
metadata:
labels:
app: node-starter
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- node-starter
topologyKey: kubernetes.io/hostname
containers:
- name: node-starter
image: us.icr.io/xp-farm/node-starter:latest
imagePullPolicy: Always
ports:
- containerPort: 9000
resources:
requests:
memory: "512Mi"
cpu: "500m"
limits:
memory: "1024Mi"
cpu: "1000m"
livenessProbe:
httpGet:
path: /healthz
port: 9000
initialDelaySeconds: 30
periodSeconds: 15
readinessProbe:
httpGet:
path: /healthz
port: 9000
initialDelaySeconds: 30
periodSeconds: 5