-
Notifications
You must be signed in to change notification settings - Fork 252
/
Copy pathk8s_infra_manifest.yaml
166 lines (161 loc) · 2.74 KB
/
k8s_infra_manifest.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
apiVersion: apps/v1
kind: Deployment
metadata:
name: sqlserver
spec:
selector:
matchLabels:
app: sqlserver
replicas: 1
template:
metadata:
labels:
app: sqlserver
spec:
containers:
- name: sqlserver
image: mcr.microsoft.com/mssql/server
ports:
- containerPort: 1433
env:
- name: ACCEPT_EULA
value: "Y"
- name: SA_PASSWORD
value: "SteeltoeR0cks!"
---
apiVersion: v1
kind: Service
metadata:
name: sqlserver
spec:
ports:
- port: 1433
selector:
app: sqlserver
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: eurekaserver
spec:
selector:
matchLabels:
app: eurekaserver
replicas: 1
template:
metadata:
labels:
app: eurekaserver
spec:
containers:
- name: eurekaserver
image: steeltoeoss/eurekaserver
ports:
- containerPort: 8761
---
apiVersion: v1
kind: Service
metadata:
name: eurekaserver
spec:
ports:
- port: 8761
selector:
app: eurekaserver
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-boot-admin
spec:
selector:
matchLabels:
app: spring-boot-admin
replicas: 1
template:
metadata:
labels:
app: spring-boot-admin
spec:
containers:
- name: spring-boot-admin
image: hananiel/spring-boot-admin-eureka-sample
ports:
- containerPort: 8080
env:
- name: EUREKA_SERVICE_URL
value: http://eurekaserver:8761
---
apiVersion: v1
kind: Service
metadata:
name: spring-boot-admin
spec:
ports:
- port: 8080
selector:
app: spring-boot-admin
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hystrix-dashboard
spec:
selector:
matchLabels:
app: hystrix-dashboard
replicas: 1
template:
metadata:
labels:
app: hystrix-dashboard
spec:
containers:
- name: hystrix-dashboard
image: kennedyoliveira/hystrix-dashboard
ports:
- containerPort: 7979
---
apiVersion: v1
kind: Service
metadata:
name: hystrix-dashboard
spec:
ports:
- port: 7979
selector:
app: hystrix-dashboard
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: zipkinserver
spec:
selector:
matchLabels:
app: zipkinserver
replicas: 1
template:
metadata:
labels:
app: zipkinserver
spec:
containers:
- name: zipkinserver
image: "openzipkin/zipkin:2.12.2"
ports:
- containerPort: 9411
---
apiVersion: v1
kind: Service
metadata:
name: zipkinserver
spec:
ports:
- port: 9411
selector:
app: zipkinserver
type: LoadBalancer