/
service-e.yaml
56 lines (56 loc) · 1.06 KB
/
service-e.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
apiVersion: v1
kind: Service
metadata:
name: service-e
labels:
app: service-e
component: service
version: "1.3.0"
spec:
ports:
- name: http
port: 80
selector:
app: service-e
component: service
version: "1.3.0"
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: service-e
labels:
app: service-e
component: service
version: "1.3.0"
spec:
replicas: 2
strategy:
type: Recreate
selector:
matchLabels:
app: service-e
component: service
version: "1.3.0"
template:
metadata:
labels:
app: service-e
component: service
version: "1.3.0"
annotations:
sidecar.istio.io/inject: "true"
spec:
containers:
- name: service-e
image: registry.hub.docker.com/garystafford/go-srv-e:1.3.0
resources:
# requests:
# memory: 100M
# cpu: 100m
# limits:
# memory: 250M
# cpu: 250m
ports:
- containerPort: 80
imagePullPolicy: IfNotPresent #Always