Skip to content

Commit fbff1ae

Browse files
committed
Changed DB to perssistant
1 parent b957473 commit fbff1ae

5 files changed

Lines changed: 35 additions & 2 deletions

File tree

.mirrord/mirrord-order.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"key": "ari",
3+
"target": {
4+
"namespace": "shop",
5+
"path": {
6+
"deployment": "order-service"
7+
}
8+
},
9+
"feature": {
10+
"network": {
11+
"incoming": {
12+
"mode": "steal",
13+
"http_filter": {
14+
"header_filter": "baggage:\\s*[^\\n]*\\bmirrord={{key}}\\b"
15+
}
16+
}
17+
}
18+
}
19+
}

apps/shop/payment-service/mirrord-payment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"key": "ari",
2+
"key": "baggage:mirrord=ari",
33
"target": {
44
"namespace": "shop",
55
"path": {

manifests/infrastructure/postgres/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ spec:
2323
secretKeyRef:
2424
name: postgres-credentials
2525
key: password
26+
- name: PGDATA
27+
value: /var/lib/postgresql/data/pgdata
2628
ports:
2729
- containerPort: 5432
2830
protocol: TCP
@@ -40,7 +42,8 @@ spec:
4042
memory: 256Mi
4143
volumes:
4244
- name: data
43-
emptyDir: {}
45+
persistentVolumeClaim:
46+
claimName: postgres-data
4447
- name: init-scripts
4548
configMap:
4649
name: postgres-init

manifests/infrastructure/postgres/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ kind: Kustomization
33
resources:
44
- configmap.yaml
55
- deployment.yaml
6+
- pvc.yaml
67
- svc.yaml
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: postgres-data
5+
spec:
6+
accessModes:
7+
- ReadWriteOnce
8+
resources:
9+
requests:
10+
storage: 5Gi

0 commit comments

Comments
 (0)