@@ -45,13 +45,13 @@ bin/backend \
4545 --oidc-issuer-client-secret=ZXhhbXBsZS1hcHAtc2VjcmV0 \
4646 --oidc-issuer-client-id=kube-bind \
4747 --oidc-issuer-url=http://127.0.0.1:5556/dex \
48- --oidc-callback-url=http://127.0.0.1:8080/callback \
48+ --oidc-callback-url=http://127.0.0.1:8080/api/ callback \
4949 --pretty-name="BigCorp.com" \
5050 --namespace-prefix="kube-bind-" \
5151 --cookie-signing-key=bGMHz7SR9XcI9JdDB68VmjQErrjbrAR9JdVqjAOKHzE= \
5252 --cookie-encryption-key=wadqi4u+w0bqnSrVFtM38Pz2ykYVIeeadhzT34XlC1Y= \
5353 --schema-source apiresourceschemas \
54- --consumer-scope=namespaced
54+ --consumer-scope=namespaced --frontend http://localhost:3000
5555```
5656
5757
@@ -91,7 +91,7 @@ kubectl kcp bind apiexport root:provider:cowboys-stable
9191``` bash
9292kubectl get logicalcluster
9393# NAME PHASE URL AGE
94- # cluster Ready https://192.168.2.166:6443/clusters/1a2ysx9kyac9gubl
94+ # cluster Ready https://192.168.2.166:6443/clusters/h3tp9nwm225v19nz
9595```
9696
97979 . Now we gonna initiate consumer:
@@ -105,28 +105,27 @@ kubectl ws create consumer --enter
10510510 . Bind the thing:
106106
107107``` bash
108- ./bin/kubectl-bind http://127.0.0.1:8080/clusters/1a2ysx9kyac9gubl /exports --dry-run -o yaml > apiserviceexport.yaml
108+ ./bin/kubectl-bind http://127.0.0.1:8080/api/ clusters/h3tp9nwm225v19nz /exports --dry-run -o yaml > apiserviceexport.yaml
109109
110110# Extract secret for binding process. Note that secret name is not the same as output from command above. Check secret
111111# name by running `kubectl get secret -n kube-bind`
112- kubectl get secret kubeconfig-tq87c -n kube-bind -o jsonpath=' {.data.kubeconfig}' | base64 -d > remote.kubeconfig
112+ kubectl get secret kubeconfig-zjx72 -n kube-bind -o jsonpath=' {.data.kubeconfig}' | base64 -d > remote.kubeconfig
113113
114- ./bin/kubectl-bind apiservice --remote-kubeconfig remote.kubeconfig -f kcp/deploy/examples/apiserviceexport-namespaced.yaml --skip-konnector --remote-namespace kube-bind-pd7m9
114+ ./bin/kubectl-bind apiservice --remote-kubeconfig remote.kubeconfig -f kcp/deploy/examples/apiserviceexport-namespaced.yaml --skip-konnector --remote-namespace kube-bind-v9jlf
115115
116- ./bin/kubectl-bind apiservice --remote-kubeconfig remote.kubeconfig -f kcp/deploy/examples/apiserviceexport-cluster.yaml --skip-konnector --remote-namespace kube-bind-tnnfp
116+ ./bin/kubectl-bind apiservice --remote-kubeconfig remote.kubeconfig -f kcp/deploy/examples/apiserviceexport-cluster.yaml --skip-konnector --remote-namespace kube-bind-2nkhf
117117
118118
119119export KUBECONFIG=.kcp/consumer.kubeconfig
120120go run ./cmd/konnector/ --lease-namespace default
121121```
122122
123- Create objects:
123+ Create objects:
124124```
125125kubectl apply -f kcp/deploy/examples/cowboy.yaml
126126kubectl apply -f kcp/deploy/examples/sheriff.yaml
127127```
128128
129-
130129## Debug
131130
132131``` bash
0 commit comments