-
Notifications
You must be signed in to change notification settings - Fork 0
/
thanos-deployment.yaml
120 lines (119 loc) · 2.14 KB
/
thanos-deployment.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
apiVersion: apps/v1
kind: Deployment
metadata:
name: ezyevent-api-deployment
labels:
app: ezyevent-api
spec:
replicas: 3
selector:
matchLabels:
app: ezyevent-api
template:
metadata:
labels:
app: ezyevent-api
spec:
containers:
- name: ezyevent-api
image: gcr.io/ezyevents/main-api:v1.0
imagePullPolicy: Always
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: ezyevent-api-service
labels:
app: ezyevent-api
spec:
type: LoadBalancer
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: ezyevent-api
sessionAffinity: None
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ezyevent-location-api-deployment
labels:
app: ezyevent-location-api
spec:
replicas: 2
selector:
matchLabels:
app: ezyevent-location-api
template:
metadata:
labels:
app: ezyevent-location-api
spec:
containers:
- name: ezyevent-location-api
image: gcr.io/ezyevents/location-api:v3.0
imagePullPolicy: Always
ports:
- containerPort: 8081
---
apiVersion: v1
kind: Service
metadata:
name: ezyevent-location-api-service
labels:
app: ezyevent-location-api
spec:
type: LoadBalancer
ports:
- name: http
port: 8081
protocol: TCP
targetPort: 8081
selector:
app: ezyevent-location-api
sessionAffinity: None
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-ui-deployment
labels:
app: web-ui
spec:
replicas: 3
selector:
matchLabels:
app: web-ui
template:
metadata:
labels:
app: web-ui
spec:
containers:
- name: ezyevent-location-api
image: gcr.io/ezyevents/web-ui:v3.0
imagePullPolicy: Always
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: web-ui-service
labels:
app: web-ui
spec:
type: LoadBalancer
ports:
- name: http
port: 8083
protocol: TCP
targetPort: 80
selector:
app: web-ui
sessionAffinity: None