Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions principal-prop-on-prem/app-router/k8s/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: destinations
data:
destinations: >-
[
{
"name": "on-prem-backend-tp",
"url": "http://principal-prop-on-prem-dest.sap-transp-proxy-system",
"forwardAuthToken": true
}
]
---
apiVersion: v1
data:
xs-app.json: |-
{
Expand All @@ -10,9 +24,9 @@ data:
"routes": [
{
"source": "^/sap/com/onprem/(.*)$",
"destination": "on-prem-backend",
"destination": "on-prem-backend-tp",
"target": "$1",
"authenticationType": "xsuaa"
"authenticationType": "none"
}
]
}
Expand Down
15 changes: 8 additions & 7 deletions principal-prop-on-prem/app-router/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
app: app-router
spec:
containers:
- image: sapse/approuter:11.3.2
- image: sapse/approuter:19.0.0
name: app-router
ports:
- containerPort: 5000
Expand All @@ -47,12 +47,6 @@ spec:
- 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}
Expand All @@ -62,6 +56,13 @@ spec:
value: "true"
- name: DEV_ENV_TRACES
value: "true"
- name: destinations
valueFrom:
configMapKeyRef:
name: destinations
key: destinations
- name: PLATFORM_COOKIE_NAME
value: "KYMA_APP_SESSION_ID"
volumes:
- name: approuter-config-volume
configMap:
Expand Down
7 changes: 7 additions & 0 deletions principal-prop-on-prem/app-router/k8s/destination-cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: destination.connectivity.api.sap/v1
kind: Destination
metadata:
name: principal-prop-on-prem-dest
spec:
destinationRef:
name: "on-prem-backend"
Binary file modified principal-prop-on-prem/assets/pp-on-prem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions principal-prop-on-prem/assets/pp-on-prem.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.