|
| 1 | +# Migrating from Deis v1 |
| 2 | + |
| 3 | +Workflow uses [`kubectl`][kubectl] and [`helmc`][helmc] to manage the cluster. These tools |
| 4 | +are equivalent to Deis v1's [`fleetctl`][fleetctl] and [`deisctl`][deisctl]. These two tools are |
| 5 | +used for managing the cluster's state, installing the platform and inspecting its state. |
| 6 | + |
| 7 | +This document is a "cheat sheet" for users migrating from Deis v1 to Workflow (v2). It lists most of |
| 8 | +the known commands administrators would use with `deisctl` and translates their usage in Workflow. |
| 9 | + |
| 10 | +## Listing all Components |
| 11 | + |
| 12 | +``` |
| 13 | +# Deis v1 |
| 14 | +$ deisctl list |
| 15 | +
|
| 16 | +# Workflow |
| 17 | +$ kubectl --namespace=deis get deployments |
| 18 | +``` |
| 19 | + |
| 20 | +## Listing all Nodes |
| 21 | + |
| 22 | +``` |
| 23 | +# Deis v1 |
| 24 | +$ fleetctl list-machines |
| 25 | +
|
| 26 | +# Workflow |
| 27 | +$ kubectl get nodes |
| 28 | +``` |
| 29 | + |
| 30 | +## Custom Configuration |
| 31 | + |
| 32 | +``` |
| 33 | +# Deis v1 |
| 34 | +$ deisctl config controller set registrationMode=admin_only |
| 35 | +
|
| 36 | +# Workflow |
| 37 | +$ kubectl --namespace=deis patch deployment deis-controller -p '{"spec":{"containers":{"env":[{"name":"REGISTRATION_MODE","value":"admin_only"}]}}}' |
| 38 | +``` |
| 39 | + |
| 40 | +## View Component Configuration |
| 41 | + |
| 42 | +``` |
| 43 | +# Deis v1 |
| 44 | +$ deisctl config router get bodySize |
| 45 | +
|
| 46 | +# Workflow |
| 47 | +$ kubectl --namespace=deis get deployment deis-router -o yaml |
| 48 | +``` |
| 49 | + |
| 50 | +## Running a Command Within a Component |
| 51 | + |
| 52 | +``` |
| 53 | +# Deis v1 |
| 54 | +$ deisctl dock router@1 |
| 55 | +
|
| 56 | +# Workflow |
| 57 | +$ kubectl get po --namespace=deis -l app=deis-router --output="jsonpath={.items[0].metadata.name}" |
| 58 | +deis-router-1930478716-iz6oq |
| 59 | +$ kubectl --namespace=deis exec -it deis-router-1930478716-iz6oq bash |
| 60 | +``` |
| 61 | + |
| 62 | +## Follow the Logs for a Component |
| 63 | + |
| 64 | +``` |
| 65 | +# Deis v1 |
| 66 | +$ fleetctl journal -f deis-builder |
| 67 | +
|
| 68 | +# Workflow |
| 69 | +$ kubectl get po --namespace=deis -l app=deis-builder --output="jsonpath={.items[0].metadata.name}" |
| 70 | +deis-builder-1851090495-5n0sn |
| 71 | +$ kubectl --namespace=deis logs -f deis-builder-1851090495-5n0sn |
| 72 | +``` |
| 73 | + |
| 74 | + |
| 75 | +[deisctl]: http://docs.deis.io/en/latest/installing_deis/install-deisctl/ |
| 76 | +[fleetctl]: https://github.com/coreos/fleet/blob/master/Documentation/using-the-client.md |
| 77 | +[kubectl]: http://kubernetes.io/docs/user-guide/kubectl-overview/ |
| 78 | +[helmc]: https://github.com/helm/helm-classic |
0 commit comments