This document describes how to use (consume) Services offered in KDP.
A service offers a set of Kubernetes resource types, such as databases or certificates, run by its provider on their own cluster. For how services work, see Services.
Log in to the KDP dashboard and open an organisation or project. Click Service Catalog in the header to see the services you can add. Each tile shows:
Search matches the name, title, description and category, and Sort by: orders the tiles. Turn
on Hide added services to show only services you haven’t added yet. You can switch between a
grid and a table. Click a tile to see its details, including its internal name: the name of the
Service object, which you need to enable the service with kubectl.
Services that aren’t allowed in the current kind of workspace are not shown.

To see the services already added here, open Services in the sidebar and select the Subscriptions tab. The tab previously labelled “External Services” is now called Subscriptions. Its Add Services button lists the services you can still add, without leaving the page.
Check out Your First Service if you want to publish services by yourself.
Click Add to organization (or Add to project) on a service in the catalogue. A dialog with the same title opens to confirm adding the service:

Several options are offered when adding a service:
Alternatively, create the APIBinding object yourself. This section assumes that you are familiar
with kcp on the Command Line and have the kcp kubectl plugin installed.
First you need to get the kubeconfig for accessing your kcp workspaces. Once you have set your
kubeconfig up, make sure you’re in the correct namespace by using
kubectl ws <path to your workspace>. Use kubectl ws . if you’re unsure where you’re at.
To enable a Service, use kubectl kcp bind apiexport and specify the path to and name of the APIExport.
# kubectl kcp bind apiexport <path to KDP Service>:<API Group of the Service>
kubectl kcp bind apiexport root:my-org:my.fancy.api
Without the plugin, you can create an APIBinding manually, simply kubectl apply this:
apiVersion: apis.kcp.io/v1alpha1
kind: APIBinding
metadata:
name: my.fancy.api
spec:
reference:
export:
name: my.fancy.api
path: root:my-org
Shortly after, the new API will be available in the workspace. Check via kubectl api-resources.
You can now create objects for types in that API group to your liking and they will be synced and
processed behind the scenes.
Note that a Service often has related resources, often Secrets and ConfigMaps. You must explicitly
allow the Service to access these in your workspace and this means editing/patching the APIBinding
object (the kcp kubectl plugin currently has no support for managing permission claims). For each of
the claimed resources, you have to accept or reject them:
spec:
permissionClaims:
# Nearly all Services in KDP require access to namespaces, rejecting this will
# most likely break the Service, even more than rejecting any other claim.
- all: true
resources: namespaces
state: Accepted
- all: true
resources: secrets
state: Accepted # or Rejected
Rejecting a claim will severely impact a Service, if not even break it. Consult with the Service’s documentation or the service owner if rejecting a claim is supported.
When you change into (kubectl ws ...) a different workspace, kubectl will inform you if there are
outstanding permission claims that you need to accept or reject.