-
Notifications
You must be signed in to change notification settings - Fork 4
/
deployment.yml
79 lines (79 loc) · 1.71 KB
/
deployment.yml
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
71
72
73
74
75
76
77
78
79
---
kind: Namespace
apiVersion: v1
metadata:
name: ambassador
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: logservice-es
namespace: ambassador
spec:
selector:
matchLabels:
app: logservice-es
replicas: 3
template:
metadata:
labels:
app: logservice-es
spec:
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values: ["ambassador"]
topologyKey: kubernetes.io/hostname
weight: 40
containers:
- name: logservice-es
image: krish512/ambassador_logservice_es
ports:
- containerPort: 9001
protocol: TCP
env:
- name: ELASTICSEARCH_ENDPOINTS
value: "http://eshost.example.com:9200"
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 150m
memory: 200Mi
readinessProbe:
tcpSocket:
port: 9001
initialDelaySeconds: 5
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: logservice-es-service
namespace: ambassador
labels:
app: logservice-es
spec:
ports:
- port: 9001
targetPort: 9001
protocol: TCP
selector:
app: logservice-es
---
apiVersion: getambassador.io/v2
kind: LogService
metadata:
name: logservice-es
namespace: ambassador
spec:
service: "logservice-es-service.ambassador:9001"
driver: http
driver_config: {}
grpc: true