Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-15 00:21:33 +00:00
parent 14574efabf
commit a1a54e1c6b
5 changed files with 58 additions and 17 deletions

View File

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

View File

@@ -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:

View File

@@ -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:

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