mirror of
https://github.com/autistic-symposium/backend-and-orchestration-toolkit.git
synced 2025-06-21 21:24:08 -04:00
39 lines
No EOL
683 B
Markdown
Executable file
39 lines
No EOL
683 B
Markdown
Executable file
# Learning Kubernetes.
|
|
|
|
|
|
|
|
## Kubectl
|
|
|
|
Kubectl is a command line interface for running commands against Kubernetes clusters. You can install it [here](https://kubernetes.io/docs/tasks/tools/install-kubectl/).
|
|
|
|
|
|
Checking out pods:
|
|
|
|
```
|
|
$ kubectl get pods --namespace=<ns-name>
|
|
```
|
|
|
|
Checking deployments:
|
|
|
|
```
|
|
$ kubectl get deployments --namespace=<ns-name>
|
|
```
|
|
|
|
Checking services:
|
|
|
|
```
|
|
$ kubectl get services --namespace=<ns-name>
|
|
```
|
|
|
|
Get more information about a pod:
|
|
|
|
```
|
|
$ kubectl describe pod --namespace=<ns-name> <pod name>
|
|
```
|
|
|
|
|
|
## Examples in this repo
|
|
|
|
|
|
* Spin up a node server example.
|
|
* Use kustomize to organize and combine YAML templates of your services and deployments. |