Skip to content

Instantly share code, notes, and snippets.

@michelleN
Last active August 15, 2017 16:41
Show Gist options
  • Save michelleN/a40f8d52895dbbc48b85e4acecad2438 to your computer and use it in GitHub Desktop.
Save michelleN/a40f8d52895dbbc48b85e4acecad2438 to your computer and use it in GitHub Desktop.
developing against draft

When dev'ing local with minkube: In one terminal window:

$ helm init
$ tiller_deploy=$(kubectl get po -n kube-system -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' | grep "tiller")
$ kubectl port-forward $tiller_deploy 44134:44134 -n kube-system

In another terminal window:

$ eval $(docker-machine env default)
$ docker run -dp 5000:5000 registry
$ draftd start --listen-addr="127.0.0.1:44135" --registry-auth="e30K" --tiller-uri=":44134" --basedomain=k8s.local --local```

In another terminal you can run draft commands after the following step:

export DRAFT_HOST=127.0.0.1:44135

*** Special thanks to Brian Hardock for most of these steps ***

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment