forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s.yaml
70 lines (70 loc) · 1.53 KB
/
k8s.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: v1
kind: List
items:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: prebid-server
spec:
replicas: 4
template:
metadata:
labels:
app: prebid-server
type: microservice
spec:
containers:
- name: prebid-server
image: eu.gcr.io/spil-infra-registry/prebid-server:0000000000
ports:
- containerPort: 8000
resources:
requests:
cpu: 100m
memory: 200Mi
livenessProbe:
httpGet:
path: /
port: 8000
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 8000
initialDelaySeconds: 10
periodSeconds: 20
- apiVersion: v1
kind: Service
metadata:
name: prebid-server
labels:
app: prebid-server
type: microservice
annotations:
serviceParams: '{
"prefixes": ["/prebid-server"]
}'
spec:
selector:
app: prebid-server
type: microservice
ports:
- protocol: TCP
port: 5000
targetPort: 8000
nodePort: 31098
type: NodePort
- apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: hpa-prebid-server
namespace: default
spec:
scaleTargetRef:
apiVersion: extensions/v1beta1
kind: Deployment
name: prebid-server
minReplicas: 2
maxReplicas: 20
targetCPUUtilizationPercentage: 70