-
Notifications
You must be signed in to change notification settings - Fork 0
/
blazor-deployment.yml
42 lines (42 loc) · 1014 Bytes
/
blazor-deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: blazorkubernetes-deployment
labels:
app: blazorkubernetes
spec:
replicas: 1
selector:
matchLabels:
app: blazorkubernetes
template:
metadata:
labels:
app: blazorkubernetes
spec:
containers:
- name: blazorkubernetes
image: drakon660/kubernetes:blazorkubernetes1
ports:
- containerPort: 80
- containerPort: 443
terminationMessagePath: "/tmp/my-log"
volumeMounts:
- name: appsettings
mountPath: /app/appsettings
readOnly: true
- name: db
image: postgres
ports:
- containerPort: 5432
env:
- name: "POSTGRES_USER"
value: "drakon"
- name: "POSTGRES_DB"
value: "sample"
- name: "POSTGRES_PASSWORD"
value: "dupa"
volumes:
- name: appsettings
secret:
secretName: secret-appsettings