-
Notifications
You must be signed in to change notification settings - Fork 0
/
microshop-deployment.yaml
86 lines (86 loc) · 2.23 KB
/
microshop-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
apiVersion: apps/v1
kind: Deployment
metadata:
name: microshop
spec:
selector:
matchLabels:
app: microshop
template:
metadata:
labels:
app: microshop
spec:
volumes:
- name: postgres-host-path
hostPath:
path: /run/desktop/mnt/host/c/data/pgdata
type: DirectoryOrCreate
containers:
- name: microshop-product-service
image: microshop-product-service:latest
imagePullPolicy: IfNotPresent
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 5000
- name: rabbitmq
image: rabbitmq:management
imagePullPolicy: Always
resources:
limits:
memory: "2Gi"
cpu: "1"
ports:
- containerPort: 5672
- containerPort: 15672
- name: postgres
image: postgres
volumeMounts:
- mountPath: /var/lib/postgresql/data/pgdata
name: postgres-host-path
env:
- name: POSTGRES_USER
value: postgres
- name: POSTGRES_PASSWORD
value: postgres
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
imagePullPolicy: Always
resources:
limits:
memory: "512Mi"
cpu: "500m"
- name: adminer
image: adminer
imagePullPolicy: Always
resources:
limits:
memory: "512Mi"
cpu: "500m"
ports:
- containerPort: 8080
- name: fusionauth
image: fusionauth/fusionauth-app:latest
env:
- name: DATABASE_URL
value: jdbc:postgresql://localhost:5432/fusionauth
- name: DATABASE_ROOT_USERNAME
value: postgres
- name: DATABASE_ROOT_PASSWORD
value: postgres
- name: DATABASE_USERNAME
value: fusionauth
- name: DATABASE_PASSWORD
value: fusionauth
- name: FUSIONAUTH_APP_RUNTIME_MODE
value: development
imagePullPolicy: Always
resources:
limits:
memory: "512Mi"
cpu: "500m"
ports:
- containerPort: 9011