forked from SAP-samples/kyma-runtime-extension-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
105 lines (105 loc) · 2.51 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: app-router
labels:
sample: principal-prop-on-prem
spec:
host: app-router
trafficPolicy:
loadBalancer:
consistentHash:
httpCookie:
name: JSESSIONID
path: /
ttl: 0s
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: app-router
sample: principal-prop-on-prem
name: app-router
spec:
replicas: 1
selector:
matchLabels:
app: app-router
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: app-router
spec:
containers:
- image: gabbi/app-router-minimal:0.0.1
name: app-router
ports:
- containerPort: 5000
resources: {}
volumeMounts:
- name: approuter-config-volume
mountPath: /usr/src/app/xs-app.json
subPath: xs-app.json
- name: xsuaa-credentials
mountPath: /etc/secrets/sapcp/xsuaa/principal-prop-on-prem-xsuaa
readOnly: true
- mountPath: /etc/secrets/sapcp/destination/on-prem-backend
name: destination-credentials
readOnly: true
- mountPath: /etc/secrets/sapcp/connectivity/connectivity-service-binding
name: connectivity-proxy-details
readOnly: true
env:
- name: CLUSTER_DOMAIN
value: {your-cluster-domain}
- name: XS_APP_LOG_LEVEL
value: debug
- name: REQUEST_TRACE
value: "true"
- name: DEV_ENV_TRACES
value: "true"
volumes:
- name: approuter-config-volume
configMap:
name: approuter-config
optional: false
- name: xsuaa-credentials
secret:
secretName: principal-prop-on-prem-xsuaa
optional: false
- name: destination-credentials
secret:
secretName: principal-prop-on-prem-dest
optional: false
- name: connectivity-proxy-details
projected:
sources:
- configMap:
name: connectivity-proxy-info
optional: false
- secret:
name: principal-prop-on-prem-xsuaa
optional: false
status: {}
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: app-router
sample: principal-prop-on-prem
name: app-router
spec:
ports:
- port: 5000
protocol: TCP
targetPort: 5000
selector:
app: app-router
status:
loadBalancer: {}