forked from Valmach/kubernetes-hackfest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata-api.yaml
More file actions
63 lines (63 loc) · 1.44 KB
/
Copy pathdata-api.yaml
File metadata and controls
63 lines (63 loc) · 1.44 KB
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
---
# Source: data-api/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: data-api
labels:
name: data-api
spec:
type: "LoadBalancer"
ports:
- name: http
port: 3009
targetPort: 3009
selector:
app: data-api
---
# Source: data-api/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: "data-api"
spec:
replicas: 1
selector:
matchLabels:
app: data-api
template:
metadata:
labels:
app: data-api
spec:
containers:
- image: "acrhackfestbrianredmond16005.azurecr.io/hackfest/data-api:1.0"
imagePullPolicy: Always
name: data-api
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: MONGODB_USER
valueFrom:
secretKeyRef:
name: cosmos-db-secret
key: user
- name: MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: cosmos-db-secret
key: pwd
- name: APPINSIGHTS_INSTRUMENTATIONKEY
valueFrom:
secretKeyRef:
name: cosmos-db-secret
key: appinsights
ports:
- containerPort: 3009
protocol: TCP
restartPolicy: Always