You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will deploy your application, create and bind the required services to your application. Now you can test your application from and http client tool e.g Insomnia.
43
+
This will deploy your application, create and bind the required services to your application. Now you can test your application from and http client tool e.g Insomnia.
44
+
45
+
## Deploy and Test Incidents Management Application on BTP Kyma Runtime
46
+
47
+
Follow the following [tutorial](https://developers.sap.com/tutorials/deploy-to-kyma.html) till `step 8` to prepare your application for Kyma Runtime.
48
+
49
+
### Build images
50
+
51
+
Build the CAP Java Service and the database image
52
+
1. Create the productive CAP build for your application:
3. Run the following command to get the domain name of your Kyma cluster:
92
+
```sh
93
+
kubectl get gateway -n kyma-system kyma-gateway \
94
+
-o jsonpath='{.spec.servers[0].hosts[0]}'
95
+
96
+
```
97
+
Result should look like this:
98
+
```sh
99
+
*.<xyz123>.kyma.ondemand.com
100
+
101
+
```
102
+
4. Add the result without the leading *. in the domain property to the chart/values.yaml file so that the URL of your CAP service can be generated:
103
+
```yaml
104
+
global:
105
+
domain: <cluster domain>
106
+
...
107
+
108
+
```
109
+
5. Replace `<your-cluster-domain>` with your cluster domain in the xsuaa section of the **chart/values.yaml** file. In case the `oauth2-configuration:` section is missing from your **values.yaml** file, make sure to add it altogether like that::
110
+
```yaml
111
+
xsuaa:
112
+
serviceOfferingName: xsuaa
113
+
servicePlanName: application
114
+
parameters:
115
+
xsappname: incidents
116
+
tenant-mode: dedicated
117
+
oauth2-configuration:
118
+
redirect-uris:
119
+
- https://*.<your-cluster-domain>/**
120
+
121
+
122
+
```
123
+
### Deploy CAP Helm chart
124
+
Follow `step 11` i.e `Deploy CAP Helm chart` of following [tutorial](https://developers.sap.com/tutorials/deploy-to-kyma.html)
125
+
126
+
### Assign the User Roles
127
+
Follow [user-role-assignment](https://developers.sap.com/tutorials/user-role-assignment.html) to assign roles to users.
128
+
- Assign `support` and `admin` role to access the application services.
129
+
130
+
### Access your service
131
+
1. Login to your kyma cluster and namespace where you deployed your application
132
+
2. Go to **Configurations** ->**Secrets** ->**incident-management-srv-auth** and under `data` section, click on decode icon.
133
+
3. Use the following credentials :</br>
134
+
clientid</br>
135
+
clientsecret</br>
136
+
url</br>
137
+
Append `/oauth/token` to `url` and use these credentials to generate xsuaa token to access your service.
138
+
139
+
For details, refere `Test Your Application` section of following [documentation](https://github.com/SAP-samples/btp-developer-guide-cap/blob/main/documentation/auditlog/5-deploy-to-kyma.md).
0 commit comments