Skip to content

Commit 6df7e1a

Browse files
committed
readme nits
1 parent dcf263f commit 6df7e1a

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

cmd/kcp-init/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,15 @@ bin/backend \
4545
```
4646

4747

48-
6. Run `kubectl ws create sub-provider --enter`
49-
7. Bind the APIExport to the workspace
48+
6. Copy the kubeconfig to the consumer:
49+
```bash
50+
cp .kcp/admin.kubeconfig .kcp/sub-provider.kubeconfig
51+
export KUBECONFIG=.kcp/sub-provider.kubeconfig
52+
k ws use :root
53+
```
54+
55+
7. Run `kubectl ws create sub-provider --enter`
56+
8. Bind the APIExport to the workspace
5057
```bash
5158
kubectl kcp bind apiexport root:kube-bind:kube-bind.io --accept-permission-claim clusterrolebindings.rbac.authorization.k8s.io \
5259
--accept-permission-claim clusterroles.rbac.authorization.k8s.io \
@@ -56,7 +63,7 @@ kubectl kcp bind apiexport root:kube-bind:kube-bind.io --accept-permission-claim
5663
--accept-permission-claim secrets.core \
5764
--accept-permission-claim namespaces.core \
5865
--accept-permission-claim serviceaccounts.rbac.authorization.k8s.io \
59-
--accept-permission-claim roles.rbac.authorization.k8s.io \
66+
--accept-permission-claim roles.rbac.authorization.k8s.io
6067
```
6168

6269
8. Create CRD:
@@ -75,9 +82,6 @@ kubectl ws create consumer --enter
7582
```
7683

7784

78-
79-
80-
8185
## Debug
8286

8387
```bash

0 commit comments

Comments
 (0)