Setup in SAP BTP Kyma
Deploy Eclipse Dirigible in SAP BTP1, Kyma environment.
Prerequisites
Steps
-
Access the SAP BTP, Kyma environment via the SAP BTP cockpit:
-
Create deployment configuration file:
deployment.yaml
apiVersion: apps/v1 kind: Deployment metadata: name: dirigible spec: replicas: 1 selector: matchLabels: app: dirigible template: metadata: labels: app: dirigible spec: containers: - name: dirigible image: dirigiblelabs/dirigible-sap-kyma:latest imagePullPolicy: Always resources: requests: memory: "1Gi" cpu: "0.5" limits: memory: "4Gi" cpu: "2" env: - name: DIRIGIBLE_THEME_DEFAULT value: fiori - name: DIRIGIBLE_HOST value: https://dirigible.<your-kyma-cluster-host> ports: - containerPort: 8080 name: dirigible protocol: TCP
apiVersion: apps/v1 kind: Deployment metadata: name: dirigible spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: dirigible template: metadata: labels: app: dirigible spec: containers: - name: dirigible image: dirigiblelabs/dirigible-sap-kyma:latest imagePullPolicy: Always resources: requests: memory: "1Gi" cpu: "0.5" limits: memory: "4Gi" cpu: "2" env: - name: DIRIGIBLE_THEME_DEFAULT value: fiori - name: DIRIGIBLE_HOST value: https://dirigible.<your-kyma-cluster-host> volumeMounts: - name: dirigible-volume mountPath: /usr/local/tomcat/target/dirigible/repository ports: - containerPort: 8080 name: dirigible protocol: TCP volumes: - name: dirigible-volume persistentVolumeClaim: claimName: dirigible-claim --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: dirigible-claim spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi
Replace Placeholders
Before deploying, replace the following placeholders:
<your-kyma-cluster-host>
with your Kyma cluster host (e.g.c-xxxx.kyma.yyyy.ondemand.com
).
-
Create service configuration file:
service.yaml
apiVersion: v1 kind: Service metadata: labels: app: dirigible name: dirigible spec: ports: - name: dirigible port: 8080 protocol: TCP targetPort: 8080 selector: app: dirigible type: ClusterIP
apiVersion: v1 kind: Service metadata: labels: app: dirigible name: dirigible spec: ports: - name: dirigible port: 8080 protocol: TCP targetPort: 8080 selector: app: dirigible type: ClusterIP --- apiVersion: gateway.kyma-project.io/v1alpha1 kind: APIRule metadata: name: dirigible spec: gateway: kyma-gateway.kyma-system.svc.cluster.local rules: - accessStrategies: - config: {} handler: noop methods: - GET - POST - PUT - PATCH - DELETE - HEAD path: /.* service: host: dirigible.<your-kyma-cluster-host> name: dirigible port: 8080
Replace Placeholders
Before deploying, replace the following placeholders:
<your-kyma-cluster-host>
with your Kyma cluster host (e.g.c-xxxx.kyma.yyyy.ondemand.com
).
-
Click on the Deploy new resource button and select the
deployment.yaml
andservice.yaml
files.Note
Alternatively the
kubectl
could be used to deploy the resources:kubectl -f deployment.yaml kubectl -f service.yaml
-
Create XSUAA service instance:
- From the Kyma dashboard, go to Service Management → Catalog.
- Find the
Authorization & Trust Management
service. - Create new service instance.
-
Provide the following additional parameters.
{ "xsappname": "dirigible-xsuaa", "oauth2-configuration": { "token-validity": 7200, "redirect-uris": [ "https://dirigible.<your-kyma-cluster-host>" ] }, "scopes": [ { "name": "$XSAPPNAME.Developer", "description": "Developer scope" }, { "name": "$XSAPPNAME.Operator", "description": "Operator scope" } ], "role-templates": [ { "name": "Developer", "description": "Developer related roles", "scope-references": [ "$XSAPPNAME.Developer" ] }, { "name": "Operator", "description": "Operator related roles", "scope-references": [ "$XSAPPNAME.Operator" ] } ], "role-collections": [ { "name": "Dirigible Developer", "description": "Dirigible Developer", "role-template-references": [ "$XSAPPNAME.Developer" ] }, { "name": "Dirigible Operator", "description": "Dirigible Operator", "role-template-references": [ "$XSAPPNAME.Operator" ] } ] }
Note
Replace the
<your-kyma-cluster-host>
placeholder with your Kyma cluster host (e.g.c-xxxxxxx.kyma.xxx.xxx.xxx.ondemand.com
). -
Bind the servce instance to the
dirigible
application.
-
Assign the
Developer
andOperator
roles. -
Log in.
-
SAP Cloud Platform is called SAP Business Technology Platform (SAP BTP) as of 2021. ↩