An open API service indexing awesome lists of open source software.

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

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
```