-
Notifications
You must be signed in to change notification settings - Fork 533
/
Copy pathdeployment.yaml
44 lines (44 loc) · 1.36 KB
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{.Values.deploy.name}}"
spec:
selector:
matchLabels:
app: service-tracker-ui
template:
metadata:
labels:
app: service-tracker-ui
spec:
containers:
- image: "{{.Values.deploy.acrServer}}/hackfest/service-tracker-ui:{{.Values.deploy.imageTag}}"
imagePullPolicy: Always
name: service-tracker-ui
resources:
requests:
memory: "512Mi"
cpu: "200m"
limits:
memory: "1024Mi"
cpu: "1.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
valueFrom:
secretKeyRef:
name: app-insights-secret
key: appinsights
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
ports:
- containerPort: {{.Values.deploy.containerPort}}
protocol: TCP
restartPolicy: Always