Create an SAP BTP Service Instance in Your Kyma Cluster ​
After successfully installing your Secret, create a service instance and a service binding.
NOTE
This section provides an example with the Authorization and Trust Management (xsuaa) service. Create your Secret following this example:
Procedure ​
To create a service instance, run the following script:
yamlkubectl create -f - <<EOF apiVersion: services.cloud.sap.com/v1 kind: ServiceInstance metadata: name: {SERVICE_INSTANCE_NAME} namespace: default spec: serviceOfferingName: xsuaa servicePlanName: application externalName: {SERVICE_INSTANCE_NAME} EOFTIP
To find values for the serviceOfferingName and servicePlanName parameters, go to the SAP BTP cockpit > Service Marketplace, select the service's tile, and find the name and Plan. The value of the externalName parameter must be unique.
To check the output, run:
bashkubectl get serviceinstances.services.cloud.sap.com {SERVICE_INSTANCE_NAME} -o yamlYou see the status
Createdand the messageServiceInstance provisioned successfully.To create a service binding, run this script:
yamlkubectl create -f - <<EOF apiVersion: services.cloud.sap.com/v1 kind: ServiceBinding metadata: name: {BINDING_NAME} namespace: default spec: serviceInstanceName: {SERVICE_INSTANCE_NAME} externalName: {BINDING_NAME} secretName: {BINDING_NAME} EOFTo check the output, run:
bashkubectl get servicebindings.services.cloud.sap.com {BINDING_NAME} -o yamlYou see the status
Createdand the messageServiceBinding provisioned successfully.Now, use a given service in your Kyma cluster. To see credentials, run:
bashkubectl get secret {BINDING_NAME} -o yaml
Result ​
You can use the Secret to communicate with the service instance.