Last active
September 8, 2022 11:40
-
-
Save akoserwal/0bdadc056c3ee4f2b9b7364be8a85469 to your computer and use it in GitHub Desktop.
kcp-dev-instruction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone git@github.com:kcp-dev/kcp.git | |
$ cd kcp | |
$ make build-all | |
``` | |
If $HOME/go/bin is not in your $PATH, you’ll need to add it, or feel free to move $HOME/go/bin/kubectl-kcp, kubectl-ws, kubectl-workspaces to someplace that is in your $PATH | |
``` | |
$ cd bin | |
$ ./kcp start | |
# In another terminal | |
$ export KUBECONFIG=.kcp/admin.kubeconfig | |
$ kubectl api-resources | |
$ kubectl kcp workload sync picluster \ | |
--syncer-image ghcr.io/kcp-dev/kcp/syncer:v0.8.0 \ | |
--resources deployments.apps,pods,poddisruptionbudgets.policy,services,ingresses.networking.k8s.io,networkpolicies.networking.k8s.io \ | |
--output-file syncer.yaml | |
# Kuberenetes cluster (Physical cluster) terminal | |
$ export KUBECONFIG=/<path>/kubeconfig | |
$ kubectl create -f ~/kcp/bin/syncer.yaml | |
https://github.com/kcp-dev/kcp/blob/main/docs/syncer.md | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment