- Set the context of kubectl with your dev cluster and your namespace. (e.g.
kubectl config use-context gke_development-123_europe-west4-c_europe --namespace=ramiro
) - Update to the lastest
cnd
version:go get github.com/okteto/cnd
- Install syncthing
- Export your deployment manifest:
kubectl get --export deployment "$YOUR_DEPLOYMENT" -oyaml > deployment.yml
- Create a
cnd.yml
file:
swap:
deployment:
file: deployment.yml
container: api
image: golang:1.11
mount:
source: ~/go/src/bitbucket.org/okteto/okteto/backend
target: /go/src/bitbucket.org/okteto/okteto/backend
- Start developing wiht CND by running
cnd up
- Run
cnd exec
allows you to execute commands directly in the container (e.g.cnd exec -- go test ./...
) - To return to your normal deployment run
cnd down