File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 16
16
.. Creates a Deployment or Job
17
17
. Check status: `kubectl.sh get -w pods`
18
18
.. 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>`
20
20
. Get logs: `kubectl.sh logs <pod-name>`
21
21
.. Use `-f` to tail logs
22
22
. Get deployments: `kubectl.sh get deployments`
54
54
55
55
== Using Maven (Service + Replication Controller + Client Pod)
56
56
57
- All code in `maven` directory
57
+ All the code is in `maven` directory:
58
58
59
59
. Create Couchbase service: `kubectl.sh create -f couchbase-service.yml`
60
60
. Check status: `kubectl.sh get -w pods`
@@ -68,8 +68,16 @@ https://github.com/arun-gupta/kubernetes-java-sample/tree/master/rolling-update
68
68
69
69
== Namespaces
70
70
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`
72
79
73
80
=== Tips
74
81
75
82
. Create resources in all `.json`, `.yaml` and `.yml` files in dir: `kubectl.sh create -f ./dir`
83
+
You can’t perform that action at this time.
0 commit comments