forked from SAP-archive/teched2020-developer-keynote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
59 lines (57 loc) · 1.13 KB
/
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: calc-service
spec:
replicas: 1
selector:
matchLabels:
name: calc-service
template:
metadata:
labels:
name: calc-service
spec:
containers:
- name: application
image: docker.pkg.github.com/sap-samples/teched2020-developer-keynote/calculationservice:latest
imagePullPolicy: Always # change to pull after testing
ports:
- containerPort: 3000
resources:
limits:
memory: 1000Mi
requests:
memory: 32Mi
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: calc-service
spec:
ports:
- name: http
port: 3000
targetPort: 3000
selector:
name: calc-service
---
apiVersion: gateway.kyma-project.io/v1alpha1
kind: APIRule
metadata:
name: calc-service
spec:
gateway: kyma-gateway.kyma-system.svc.cluster.local
service:
name: calc-service
port: 3000
host: calc-service
rules:
- path: /.*
methods: ["GET"]
accessStrategies:
- handler: noop
config: {}