https://github.com/containersolutions/kubernetes-cheatsheet
Cheatsheet with useful Kubernetes commands or tools
https://github.com/containersolutions/kubernetes-cheatsheet
cheatsheet kubernetes
Last synced: about 1 year ago
JSON representation
Cheatsheet with useful Kubernetes commands or tools
- Host: GitHub
- URL: https://github.com/containersolutions/kubernetes-cheatsheet
- Owner: ContainerSolutions
- Created: 2019-07-19T11:49:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-22T12:59:52.000Z (almost 7 years ago)
- Last Synced: 2025-02-15T03:29:03.724Z (over 1 year ago)
- Topics: cheatsheet, kubernetes
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes Cheatsheet
## API
```
$ kubectl api-resources
NAME SHORTNAMES APIGROUP NAMESPACED KIND
bindings true Binding
componentstatuses cs false ComponentStatus
configmaps cm true ConfigMap
...
```
## Explain
```
$ kubectl explain role
KIND: Role
VERSION: rbac.authorization.k8s.io/v1
DESCRIPTION:
Role is a namespaced, logical grouping of PolicyRules that can be
referenced as a unit by a RoleBinding.
...
```
## Namespaces
Switch namespace with [kns](https://github.com/blendle/kns)
```
$ kns
*arrow up/down + enter*
```
## Secrets
List all secrets
```
$ kubectl get secret
```
Export a specific secret
```
$ kubectl get secret secret-name -o yaml --export
```