-
Notifications
You must be signed in to change notification settings - Fork 413
/
Copy pathfront-end.yml
65 lines (64 loc) · 1.3 KB
/
front-end.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
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: front-end
namespace: staging
spec:
replicas: 1
template:
metadata:
labels:
app: front-end
version: v1
spec:
containers:
- name: front-end
image: 10.31.240.247:5000/library/sockshop/front-end-0.6.0
env:
- name: DT_TAGS
value: "product=sockshop"
- name: DT_CUSTOM_PROP
value: "SERVICE_TYPE=FRONTEND"
resources:
limits:
cpu: 300m
memory: 1024Mi
requests:
cpu: 100m
memory: 320Mi
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 120
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /
port: 8080
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
nodeSelector:
beta.kubernetes.io/os: linux
---
apiVersion: v1
kind: Service
metadata:
name: front-end
labels:
app: front-end
namespace: staging
spec:
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: front-end
type: LoadBalancer