cancel
Showing results for 
Search instead for 
Did you mean: 

no matches for kind "ServiceInstance" in version "servicecatalog.k8s.io/v1beta1"

hagarnabil
Explorer
406

Hi everyone,

I'm trying to create a service instance on Kyma but I keep getting this error "ensure CRDs are installed first" and I've tried changing my api version several times but the error stays the same. Attached below is my Service Instance deployment file and the error I get.

---
### SERVICE INSTANCE CONFIGURATION ###
# Xsuaa instance
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceInstance
metadata:
name: xsuaa-authn
spec:
serviceOfferingName: xsuaa
servicePlanName: application
parameters:
xsappname: spring-security-hybrid-usage
tenant-mode: dedicated
oauth2-configuration:
credential-types:
- x509
scopes:
- name: "$XSAPPNAME.Read"
description: Read Permissions.
role-templates:
- name: Viewer
description: View Data
scope-references:
- "$XSAPPNAME.Read"
role-collections:
- name: XSUAA-Viewer
description: Viewer (read)
role-template-references:
- "$XSAPPNAME.Viewer"
---
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceBinding
metadata:
name: xsuaa-authn-binding
spec:
serviceInstanceName: xsuaa-authn
---
# IAS instance
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceInstance
metadata:
name: ias-authn
spec:
serviceOfferingName: identity
servicePlanName: application
parameters:
credential-type: "X509_GENERATED"
---
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceBinding
metadata:
name: ias-service-binding
spec:
serviceInstanceName: ias-authn
parameters:
credential-type: "X509_GENERATED"
---



Thanks in advance for any help.

Accepted Solutions (0)

Answers (1)

Answers (1)

gabbi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Hagar,

You need to use the update

apiVersion: services.cloud.sap.com/v1

Please refer to the sap BTP operator documentation

https://github.com/SAP/sap-btp-service-operator


BR

Gaurav

hagarnabil
Explorer
0 Kudos

Hi Gaurav thanks for your reply,

I tried to deploy the following but I got the same error again.

 apiVersion: services.cloud.sap.com/v1
 kind: ServiceInstance
 metadata:
   name: xsuaa-instance
 spec:
   serviceOfferingName: xsuaa
   servicePlanName: application

Thanks in advance.

gabbi
Product and Topic Expert
Product and Topic Expert

Hi Hagar,

Is the Kyma runtime recently provisioned?
You would need to enable the BTP operator module.


Reference: https://help.sap.com/docs/btp/sap-business-technology-platform/kyma-modules

BR

Gaurav