forked from Azure/kubernetes-hackfest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
39 lines (39 loc) · 1.14 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{.Values.deploy.name}}"
spec:
replicas: {{ default 1 .Values.deploy.replicas }}
selector:
matchLabels:
app: quakes-api
template:
metadata:
labels:
app: quakes-api
spec:
containers:
- image: "{{.Values.deploy.acrServer}}/hackfest/quakes-api:{{.Values.deploy.imageTag}}"
imagePullPolicy: Always
name: quakes-api
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: APPINSIGHTS_INSTRUMENTATIONKEY
valueFrom:
secretKeyRef:
name: app-insights-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: {{.Values.deploy.containerPort}}
protocol: TCP
restartPolicy: Always