-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookapp.yaml
47 lines (46 loc) · 995 Bytes
/
bookapp.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
apiVersion: v1
kind: Service
metadata:
name: bookwormap-service
spec:
selector:
app: bookwormap-pod
ports:
- name: web
port: 80
targetPort: 5000
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bookwormap-deployment
spec:
replicas: 1
selector:
matchLabels:
app: bookwormap-pod
template:
metadata:
labels:
app: bookwormap-pod
spec:
containers:
- name: bookwormap-pod
image: CONTAINER_IMAGE
imagePullPolicy: Always
resources:
requests:
memory: "100Mi" # "1024Mi"
cpu: "0.5"
limits:
memory: "100Mi"
cpu: "0.5"
env:
- name: ASPNETCORE_ENVIRONMENT
value: Production
- name: ConnectionStrings__DefaultConnection
valueFrom:
secretKeyRef:
name: dbsecret
key: ConnectionStrings__DefaultConnection