forked from Azure/kubernetes-hackfest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flights-api.yaml
57 lines (57 loc) · 1.36 KB
/
flights-api.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
---
# Source: flights-api/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: flights-api
labels:
name: flights-api
spec:
type: "LoadBalancer"
ports:
- name: http
port: 3003
targetPort: 3003
selector:
app: flights-api
---
# Source: flights-api/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: "flights-api"
spec:
replicas: 1
selector:
matchLabels:
app: flights-api
template:
metadata:
labels:
app: flights-api
spec:
containers:
- image: "acrhackfestbrianredmond16005.azurecr.io/hackfest/flights-api:1.0"
imagePullPolicy: Always
name: flights-api
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: APPINSIGHTS_INSTRUMENTATIONKEY
valueFrom:
secretKeyRef:
name: cosmos-db-secret
key: appinsights
- name: DATA_SERVICE_URI
value: http://data-api.hackfest.svc.cluster.local:3009/
- name: CACHE_SERVICE_URI
value: http://cache-api.hackfest.svc.cluster.local:3006/
ports:
- containerPort: 3003
protocol: TCP
restartPolicy: Always