Skip to content

Commit dfe4be3

Browse files
committed
style(namespace): consistent position for namespace arg
1 parent 1b731b3 commit dfe4be3

9 files changed

Lines changed: 23 additions & 23 deletions

File tree

src/contributing/development-environment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,29 +203,29 @@ Once your customized Deis component has been deployed, here are some helpful com
203203
### See All Deis Pods
204204

205205
```
206-
$ kubectl get pods --namespace=deis
206+
$ kubectl --namespace=deis get pods
207207
```
208208

209209
### Describe a Pod
210210

211211
This is often useful for troubleshooting pods that are in pending or crashed states:
212212

213213
```
214-
$ kubectl describe -f <pod name> --namespace=deis
214+
$ kubectl --namespace=deis describe -f <pod name>
215215
```
216216

217217
### Tail Logs
218218

219219
```
220-
$ kubectl logs -f <pod name> --namespace=deis
220+
$ kubectl --namespace=deis logs -f <pod name>
221221
```
222222

223223
### Django Shell
224224

225225
Specific to [deis/controller][controller]
226226

227227
```
228-
$ kubectl exec -it <pod name> --namespace=deis -- python manage.py shell
228+
$ kubectl --namespace=deis exec -it <pod name> -- python manage.py shell
229229
```
230230

231231
Have commands other Deis contributors might find useful? Send us a PR!

src/installing-workflow/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ You'll need to wait for the pods that it launched to be ready. Monitor their sta
6666
by running:
6767

6868
```
69-
$ kubectl get pods --namespace=deis
69+
$ kubectl --namespace=deis get pods
7070
```
7171

7272
If you would like `kubectl` to automatically update as the pod states change, run (type Ctrl-C to stop the watch):
7373
```
74-
$ kubectl get pods --namespace=deis -w
74+
$ kubectl --namespace=deis get pods
7575
```
7676

7777
Depending on the order in which the Workflow components start, you may see a few components restart. This is common during the installation process, if a component's dependencies are not yet available the component will exit and Kubernetes will automatically restart the containers.
7878

7979
Here, you can see that controller, builder and registry all took a few loops before there were able to start:
8080
```
81-
$ kubectl get pods --namespace=deis
81+
$ kubectl --namespace=deis get pods
8282
NAME READY STATUS RESTARTS AGE
8383
deis-builder-hy3xv 1/1 Running 5 5m
8484
deis-controller-g3cu8 1/1 Running 5 5m

src/managing-workflow/configuring-dns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ DNS for any applications using a "custom domain" (a fully-qualified domain name
2323
Although it is dependent upon your distribution of Kubernetes and your underlying infrastructure, in many cases, the IP(s) or existing fully-qualified domain name of a load balancer can be determined directly using the `kubectl` tool:
2424

2525
```
26-
$ kubectl describe service deis-router --namespace=deis | grep "LoadBalancer Ingress"
26+
$ kubectl --namespace=deis describe service deis-router | grep "LoadBalancer Ingress"
2727
LoadBalancer Ingress: a493e4e58ea0511e5bb390686bc85da3-1558404688.us-west-2.elb.amazonaws.com
2828
```
2929

@@ -40,7 +40,7 @@ In general, for any IP, `a.b.c.d`, the fully-qualified domain name `any-subdomai
4040
To begin, find the node(s) hosting router instances using `kubectl`:
4141

4242
```
43-
$ kubectl describe pod deis-router --namespace=deis | grep Node
43+
$ kubectl --namespace=deis describe pod deis-router | grep Node
4444
Node: ip-10-0-0-199.us-west-2.compute.internal/10.0.0.199
4545
Node: ip-10-0-0-198.us-west-2.compute.internal/10.0.0.198
4646
```

src/managing-workflow/configuring-load-balancers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Begin by determining the "node ports" for the `deis-router` service:
1616

1717

1818
```
19-
$ kubectl describe service deis-router --namespace=deis
19+
$ kubectl --namespace=deis describe service deis-router
2020
```
2121

2222
This will yield output similar to the following:

src/managing-workflow/platform-logging.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Logger acts like a syslog server and receives all log messages that are occurrin
1313
With the release of workflow-beta3 chart the logging system is part of the main installation of Workflow. You will then need to watch the components come up and verify they are in a running state by executing the following command:
1414

1515
```
16-
$ kubectl get pods --namespace=deis
16+
$ kubectl --namespace=deis get pods
1717
```
1818

1919
You should see output similar to this:
@@ -46,8 +46,8 @@ Once the pod has restarted, you can verify the logging system is working by goin
4646
```
4747
Error: There are currently no log messages. Please check the following things:
4848
1) Logger and fluentd pods are running.
49-
2) The application is writing logs to the logger component by checking that an entry in the ring buffer was created: kubectl logs <logger pod> --namespace=deis
50-
3) Making sure that the container logs were mounted properly into the fluentd pod: kubectl exec <fluentd pod> --namespace=deis ls /var/log/containers
49+
2) The application is writing logs to the logger component by checking that an entry in the ring buffer was created: kubectl --namespace=deis logs <logger pod>
50+
3) Making sure that the container logs were mounted properly into the fluentd pod: kubectl --namespace=deis exec <fluentd pod> ls /var/log/containers
5151
```
5252

5353
## Architecture Diagram

src/quickstart/provider/aws/dns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ By describing the `deis-router` service, you can see what hostname allocated by
88
cluster:
99

1010
```
11-
$ kubectl describe svc deis-router --namespace=deis | egrep LoadBalancer
11+
$ kubectl --namespace=deis describe svc deis-router | egrep LoadBalancer
1212
Type: LoadBalancer
1313
LoadBalancer Ingress: abce0d48217d311e69a470643b4d9062-2074277678.us-west-1.elb.amazonaws.com
1414
```

src/quickstart/provider/aws/install-aws.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ You'll need to wait for the pods that it launched to be ready. Monitor their sta
5454
by running:
5555

5656
```
57-
$ kubectl get pods --namespace=deis
57+
$ kubectl --namespace=deis get pods
5858
```
5959

6060
If you would like `kubectl` to automatically update as the pod states change, run (type Ctrl-C to stop the watch):
6161
```
62-
$ kubectl get pods --namespace=deis -w
62+
$ kubectl --namespace=deis get pods -w
6363
```
6464

6565
Depending on the order in which the Workflow components start, you may see a few components restart. This is common during the installation process, if a component's dependencies are not yet available the component will exit and Kubernetes will automatically restart the containers.
6666

6767
Here, you can see that controller, builder and registry all took a few loops before there were able to start:
6868
```
69-
$ kubectl get pods --namespace=deis
69+
$ kubectl --namespace=deis get pods
7070
NAME READY STATUS RESTARTS AGE
7171
deis-builder-hy3xv 1/1 Running 5 5m
7272
deis-controller-g3cu8 1/1 Running 5 5m
@@ -96,7 +96,7 @@ By describing the `deis-router` service, you can see what IP hostname has been a
9696
cluster:
9797

9898
```
99-
$ kubectl describe svc deis-router --namespace=deis | egrep LoadBalancer
99+
$ kubectl --namespace=deis describe svc deis-router | egrep LoadBalancer
100100
Type: LoadBalancer
101101
LoadBalancer Ingress: abce0d48217d311e69a470643b4d9062-2074277678.us-west-1.elb.amazonaws.com
102102
```

src/quickstart/provider/gke/install-gke.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ You'll need to wait for the pods that it launched to be ready. Monitor their sta
5252
by running:
5353

5454
```
55-
$ kubectl get pods --namespace=deis
55+
$ kubectl --namespace=deis get pods
5656
```
5757

5858
If you would like `kubectl` to automatically update as the pod states change, run (type Ctrl-C to stop the watch):
5959
```
60-
$ kubectl get pods --namespace=deis -w
60+
$ kubectl --namespace=deis get pods -w
6161
```
6262

6363
Depending on the order in which the Workflow components start, you may see a few components restart. This is common during the installation process, if a component's dependencies are not yet available the component will exit and Kubernetes will automatically restart the containers.
6464

6565
Here, you can see that controller, builder and registry all took a few loops before there were able to start:
6666
```
67-
$ kubectl get pods --namespace=deis
67+
$ kubectl --namespace=deis get pods
6868
NAME READY STATUS RESTARTS AGE
6969
deis-builder-miekp 1/1 Running 1 2m
7070
deis-controller-egu7x 1/1 Running 3 2m

src/quickstart/provider/vagrant/install-vagrant.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ You'll need to wait for the pods that it launched to be ready. Monitor their sta
5252
by running:
5353

5454
```
55-
$ kubectl get pods --namespace=deis
55+
$ kubectl --namespace=deis get pods
5656
```
5757

5858
If you would like `kubectl` to automatically update as the pod states change, run (type Ctrl-C to stop the watch):
5959
```
60-
$ kubectl get pods --namespace=deis -w
60+
$ kubectl --namespace=deis get pods -w
6161
```
6262

6363
Depending on the order in which the Workflow components start, you may see a few components restart. This is common during the installation process, if a component's dependencies are not yet available the component will exit and Kubernetes will automatically restart the containers.

0 commit comments

Comments
 (0)