Skip to content

Commit 40d846e

Browse files
committed
namespaces flow
1 parent cf0001f commit 40d846e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

readme.adoc

+11-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.. Creates a Deployment or Job
1717
. Check status: `kubectl.sh get -w pods`
1818
.. Show the pod name derived from the Deployment name
19-
. Describe pod: `kubectl.sh describe pod <name>` or `kubectl.sh describe pod/<name>`
19+
. Describe pod: `kubectl.sh describe pod <pod-name>` or `kubectl.sh describe pod/<pod-name>`
2020
. Get logs: `kubectl.sh logs <pod-name>`
2121
.. Use `-f` to tail logs
2222
. Get deployments: `kubectl.sh get deployments`
@@ -54,7 +54,7 @@
5454

5555
== Using Maven (Service + Replication Controller + Client Pod)
5656

57-
All code in `maven` directory
57+
All the code is in `maven` directory:
5858

5959
. Create Couchbase service: `kubectl.sh create -f couchbase-service.yml`
6060
. Check status: `kubectl.sh get -w pods`
@@ -68,8 +68,16 @@ https://github.com/arun-gupta/kubernetes-java-sample/tree/master/rolling-update
6868

6969
== Namespaces
7070

71-
. Show pods in all namespaces: `kubectl.sh get pods --all-namespaces`
71+
. Create a new namespace: `kubectl.sh create -f dev-namespace.yaml`
72+
. Get namespaces: `kubectl.sh get namespace`
73+
. Create a new deployment in the namespace: `kubectl.sh --namespace=development run couchbase --image=arungupta/couchbase`
74+
. List deployments: `kubectl.sh get deployments`
75+
.. No deployments shown
76+
. List all resources in the namespace: `kubectl.sh get deployments --namespace=development`
77+
. List all resources in all namespaces: `kubectl.sh get deployments --all-namespaces`
78+
. Show pods in the namespaces: `kubectl.sh get pods --all-namespaces`
7279

7380
=== Tips
7481

7582
. Create resources in all `.json`, `.yaml` and `.yml` files in dir: `kubectl.sh create -f ./dir`
83+

0 commit comments

Comments
 (0)