forked from Azure/kubernetes-hackfest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
weather-api.yaml
57 lines (57 loc) · 1.36 KB
/
weather-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: weather-api/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: weather-api
labels:
name: weather-api
spec:
type: "LoadBalancer"
ports:
- name: http
port: 3015
targetPort: 3015
selector:
app: weather-api
---
# Source: weather-api/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: "weather-api"
spec:
replicas: 1
selector:
matchLabels:
app: weather-api
template:
metadata:
labels:
app: weather-api
spec:
containers:
- image: "acrhackfestbrianredmond16005.azurecr.io/hackfest/weather-api:1.0"
imagePullPolicy: Always
name: weather-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: 3015
protocol: TCP
restartPolicy: Always