-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathdeployment.yaml
81 lines (79 loc) · 1.57 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
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: my-approuter
spec:
host: my-approuter
trafficPolicy:
loadBalancer:
consistentHash:
httpCookie:
name: JSESSIONID
path: /
ttl: 0s
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: my-approuter
name: my-approuter
spec:
replicas: 2
selector:
matchLabels:
app: my-approuter
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: my-approuter
spec:
volumes:
- name: xs-app
configMap:
name: xs-app
- name: my-xsuaa-binding
secret:
secretName: my-xsuaa-binding
containers:
- image: sapse/approuter:15.0.0
name: my-approuter
imagePullPolicy: Always
ports:
- containerPort: 5000
resources: {}
volumeMounts:
- name: xs-app
mountPath: /app/xs-app.json
subPath: xs-app.json
readOnly: true
- name: my-xsuaa-binding
mountPath: /etc/secrets/sapcp/xsuaa/my-xsuaa
readOnly: true
env:
- name: destinations
valueFrom:
configMapKeyRef:
name: destinations
key: destinations
status: {}
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: my-approuter
name: my-approuter
spec:
ports:
- port: 5000
protocol: TCP
targetPort: 5000
selector:
app: my-approuter
status:
loadBalancer: {}