forked from SAP-archive/teched2020-developer-keynote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
66 lines (63 loc) · 1.16 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
60
61
62
63
64
65
66
apiVersion: apps/v1
kind: Deployment
metadata:
name: brain
spec:
replicas: 1
selector:
matchLabels:
app: brain
template:
metadata:
labels:
app: brain
version: v1
spec:
containers:
- image: docker.pkg.github.com/OWNER/REPOSITORY/brain:latest
imagePullPolicy: Always
name: brain
ports:
- name: http
containerPort: 4004
resources:
limits:
memory: 1000Mi
requests:
memory: 32Mi
envFrom:
- configMapRef:
name: appconfigcap
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: brain
labels:
app: brain
spec:
ports:
- port: 4004
name: http
targetPort: 4004
selector:
app: brain
---
apiVersion: gateway.kyma-project.io/v1alpha1
kind: APIRule
metadata:
name: brain
spec:
gateway: kyma-gateway.kyma-system.svc.cluster.local
service:
name: brain
port: 4004
host: brain
rules:
- path: /.*
methods: ["GET","POST","PUT","DELETE","PATCH","HEAD"]
accessStrategies:
- handler: noop
config: {}