Skip to content

Commit a011520

Browse files
author
Matthew Fisher
authored
Merge pull request #445 from deis/migration-guide
feat(reference-guide): add Deis v1 Migration Guide
2 parents c362ecc + e5bc58d commit a011520

2 files changed

Lines changed: 80 additions & 1 deletion

File tree

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ pages:
7676
- Conduct: contributing/conduct.md
7777
- Maintainers: contributing/maintainers.md
7878
- Reference Guide:
79-
- Terms: reference-guide/terms.md
79+
- Migrating from Deis v1: reference-guide/migration.md
8080
- Creating a Self-Signed SSL Certificate: reference-guide/creating-a-self-signed-ssl-certificate.md
81+
- Terms: reference-guide/terms.md
8182
# FIXME (bacongobbler): our custom deis theme only supports a toctree depth of 2 due to css issues
8283
- Controller API v2.0: reference-guide/controller-api/v2.0.md
8384
- Controller API v2.1: reference-guide/controller-api/v2.1.md

src/reference-guide/migration.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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

Comments
 (0)