forked from Azure/kubernetes-hackfest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service-tracker-ui.yaml
59 lines (59 loc) · 1.55 KB
/
service-tracker-ui.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
---
# Source: web-ui/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: service-tracker-ui
labels:
name: service-tracker-ui
spec:
type: "LoadBalancer"
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: service-tracker-ui
---
# Source: web-ui/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: "service-tracker-ui"
spec:
selector:
matchLabels:
app: service-tracker-ui
template:
metadata:
labels:
app: service-tracker-ui
spec:
containers:
- image: "acrhackfestbrianredmond16005.azurecr.io/hackfest/service-tracker-ui:1.0"
imagePullPolicy: Always
name: service-tracker-ui
resources:
requests:
memory: "512Mi"
cpu: "1.0"
limits:
memory: "1024Mi"
cpu: "2.0"
env:
- name: FLIGHT_API_ROOT
value: http://flights-api.hackfest.svc.cluster.local:3003/
- name: WEATHER_API_ROOT
value: http://weather-api.hackfest.svc.cluster.local:3015/
- name: QUAKES_API_ROOT
value: http://quakes-api.hackfest.svc.cluster.local:3012/
- name: APPINSIGHTS_INSTRUMENTATIONKEY
value: 6dc23005-a1d0-418a-82bd-b232498b5221
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
ports:
- containerPort: 8080
protocol: TCP
restartPolicy: Always