mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 11:50:40 +00:00
Update cheatsheets
This commit is contained in:
@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a deployment:
|
||||
|
||||
`kubectl create deployment {{deployment_name}} --image={{image}}`
|
||||
`kubectl create {{[deploy|deployment]}} {{deployment_name}} --image={{image}}`
|
||||
|
||||
- Create a deployment with replicas:
|
||||
|
||||
`kubectl create deployment {{deployment_name}} --image={{image}} --replicas={{number_of_replicas}}`
|
||||
`kubectl create {{[deploy|deployment]}} {{deployment_name}} --image={{image}} --replicas={{number_of_replicas}}`
|
||||
|
||||
- Create a service:
|
||||
|
||||
`kubectl create service {{service_type}} {{service_name}} --tcp={{port}}:{{target_port}}`
|
||||
`kubectl create {{[svc|service]}} {{service_type}} {{service_name}} --tcp={{port}}:{{target_port}}`
|
||||
|
||||
- Create a namespace:
|
||||
|
||||
`kubectl create namespace {{namespace_name}}`
|
||||
`kubectl create {{[ns|namespace]}} {{namespace_name}}`
|
||||
|
||||
@@ -10,27 +10,27 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Delete a specific pod:
|
||||
|
||||
`kubectl delete pod {{pod_name}}`
|
||||
`kubectl delete {{[po|pod]}} {{pod_name}}`
|
||||
|
||||
- Delete a specific deployment:
|
||||
|
||||
`kubectl delete deployment {{deployment_name}}`
|
||||
`kubectl delete {{[deploy|deployment]}} {{deployment_name}}`
|
||||
|
||||
- Delete a specific node:
|
||||
|
||||
`kubectl delete node {{node_name}}`
|
||||
`kubectl delete {{[no|node]}} {{node_name}}`
|
||||
|
||||
- Delete all pods in a specified namespace:
|
||||
|
||||
`kubectl delete pods --all --namespace {{namespace}}`
|
||||
`kubectl delete {{[po|pods]}} --all {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Delete all deployments and services in a specified namespace:
|
||||
|
||||
`kubectl delete deployments,services --all --namespace {{namespace}}`
|
||||
`kubectl delete {{[deploy|deployment]}},{{[svcľservices]}} --all {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Delete all nodes:
|
||||
|
||||
`kubectl delete nodes --all`
|
||||
`kubectl delete {{[no|nodes]}} --all`
|
||||
|
||||
- Delete resources defined in a YAML manifest:
|
||||
|
||||
|
||||
@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show details of pods in a namespace:
|
||||
|
||||
`kubectl describe pods {{[-n|--namespace]}} {{namespace}}`
|
||||
`kubectl describe {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Show details of nodes in a namespace:
|
||||
|
||||
`kubectl describe nodes {{[-n|--namespace]}} {{namespace}}`
|
||||
`kubectl describe {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Show the details of a specific pod in a namespace:
|
||||
|
||||
`kubectl describe pods {{pod_name}} {{[-n|--namespace]}} {{namespace}}`
|
||||
`kubectl describe {{[po|pods]}} {{pod_name}} {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Show the details of a specific node in a namespace:
|
||||
|
||||
`kubectl describe nodes {{node_name}} {{[-n|--namespace]}} {{namespace}}`
|
||||
`kubectl describe {{[no|nodes]}} {{node_name}} {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Show details of Kubernetes objects defined in a YAML manifest file:
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Apply taint to a node:
|
||||
|
||||
`kubectl taint nodes {{node_name}} {{label_key}}={{label_value}}:{{effect}}`
|
||||
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}={{label_value}}:{{effect}}`
|
||||
|
||||
- Remove taint from a node:
|
||||
|
||||
`kubectl taint nodes {{node_name}} {{label_key}}:{{effect}}-`
|
||||
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}:{{effect}}-`
|
||||
|
||||
- Remove all taints from a node:
|
||||
|
||||
`kubectl taint nodes {{node_name}} {{label_key}}-`
|
||||
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}-`
|
||||
|
||||
41
tldr/monolith
Normal file
41
tldr/monolith
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# monolith
|
||||
|
||||
> Save a web page as a single HTML file.
|
||||
> More information: <https://github.com/Y2Z/monolith>.
|
||||
|
||||
- Save a webpage as a single HTML file:
|
||||
|
||||
`monolith {{url}}`
|
||||
|
||||
- Save a webpage as a single HTML file, excluding audio:
|
||||
|
||||
`monolith {{url}} {{[-a|--no-audio]}}`
|
||||
|
||||
- Save a webpage as a single HTML file, excluding CSS:
|
||||
|
||||
`monolith {{url}} {{[-c|--no-css]}}`
|
||||
|
||||
- Save a webpage as a single HTML file, excluding images:
|
||||
|
||||
`monolith {{url}} {{[-i|--no-images]}}`
|
||||
|
||||
- Save a webpage as a single HTML file, excluding videos:
|
||||
|
||||
`monolith {{url}} {{[-v|--no-video]}}`
|
||||
|
||||
- Save a webpage as a single HTML file, excluding JavaScript:
|
||||
|
||||
`monolith {{url}} {{[-j|--no-js]}}`
|
||||
|
||||
- Save a webpage as a single HTML file, accepting invalid TLS certificates:
|
||||
|
||||
`monolith {{url}} {{[-k|--insecure]}}`
|
||||
|
||||
- Save a webpage as a single HTML file, specifying a specific output file:
|
||||
|
||||
`monolith {{url}} {{[-o|--output]}} {{path/to/file.html}}`
|
||||
Reference in New Issue
Block a user