This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
commerce-mock.yaml
86 lines (86 loc) · 1.72 KB
/
commerce-mock.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: v1
kind: Namespace
metadata:
labels:
istio-injection: enabled
name: mocks
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: commerce-mock
namespace: mocks
labels:
app: commerce-mock
spec:
selector:
matchLabels:
app: commerce-mock
strategy:
rollingUpdate:
maxUnavailable: 1
replicas: 1
template:
metadata:
labels:
app: commerce-mock
spec:
containers:
# - image: eu.gcr.io/kyma-project/xf-application-mocks/commerce-mock:latest
- image: pbochynski/commerce-mock-lite:0.3
imagePullPolicy: Always
name: commerce-mock
ports:
- name: http
containerPort: 10000
env:
- name: DEBUG
value: "true"
- name: RENEWCERT_JOB_CRON
value: "00 00 */12 * * *"
# volumeMounts:
# - mountPath: "/app/keys"
# name: commerce-mock-volume
resources:
requests:
memory: "150Mi"
cpu: "10m"
limits:
memory: "350Mi"
cpu: "300m"
# volumes:
# - name: commerce-mock-volume
# persistentVolumeClaim:
# claimName: commerce-mock
---
apiVersion: v1
kind: Service
metadata:
name: commerce-mock
namespace: mocks
labels:
app: commerce-mock
spec:
ports:
- name: http
port: 10000
selector:
app: commerce-mock
---
apiVersion: gateway.kyma-project.io/v1alpha1
kind: APIRule
metadata:
name: commerce-mock
namespace: mocks
spec:
gateway: kyma-gateway.kyma-system.svc.cluster.local
rules:
- accessStrategies:
- config: {}
handler: allow
methods: ["*"]
path: /.*
service:
host: commerce
name: commerce-mock
port: 10000