Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

18 total results found

CPU Memory Stat

K8s Commands

Node Stat #!/bin/bash echo -e "NODE\t\t\tCPU Requests\tCPU Limits\tMemory Requests\tMemory Limits" for node in $(kubectl get nodes -o name | cut -d'/' -f2); do kubectl describe node "$node" | awk -v node="$node" ' BEGIN { cpu_req = cpu_lim = m...

stats
memory
cpu
commands
k8s

Others

K8s Commands

Cluster Info kubectl cluster-info Kubernetes master is running at https://lb-tomato.example.local:6443 KubeDNS is running at https://lb-tomato.example.local:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy To further debug and diagnose cluster...

others
commands
k8s

Pod

K8s Commands

Get Pod Image kubectl get po xxx -o jsonpath="{.items[*].spec['containers'][*].image}{'\n'}"; echo List All Images All Images = Containers Images + Init Containers Images All Imageskubectl get pods -o jsonpath="{.items[*].spec['containers', 'initContainers'...

pod
commands
k8s

Common Commands

K8s Helm

List Repo helm repo ls Search Chart helm search repo chart-name List Release helm ls NAME: clickhouse NAMESPACE: monitor REVISION: 1 UPDATED: 2023-07-24 10:52:50.017724318 +0000 UTC STATUS: deployed CHART: clickhouse-0.2.5 APP VERSION: 23.6.2.18-alpine...

k8s
commands
helm

Basic Usage

Elasticsearch Manual

Get Health curl -s "http://localhost:9200/_cluster/health?pretty" { "cluster_name" : "docker-cluster", // 集群名称 "status" : "green", // 集群健康状态,green 表示正常 "timed_out" : false, // 查询集群健康时是否超时,false 表示未超时 "number_of_nodes" ...

commands
elasticsearch

Common Commands 1

Linux Command Line and Shell Scripting ... Commands

MAN This command can view different sections of the manual pages. man man man - an interface to the system reference manuals The table below shows the section numbers of the manual followed by the types of pages they contain. 1 Executable programs or shell...

commands
lclssb
linux
operating-system

Common Commands 2

Linux Command Line and Shell Scripting ... Commands

Sort Sorts lines of text files by default, non-numeric. sort - sort lines of text files Reverse Order sort -r file Numeric Sort sort -n file Sort By Month Month format: Jan, Feb, Mar. sort -M file Specify Column Default is separated by (consecutive) space...

commands
lclssb
linux
operating-system

Compression

Linux Command Line and Shell Scripting ... Commands

[todo]

commands
lclssb
linux
operating-system

GREP

Linux Command Line and Shell Scripting ... Commands

Full name Global Regular Expression Print, originated from a Unix editor ed command g/re/p, where g (global) is global matching, re (regular expression) is regular expression, p (print) is print. Therefore, the grep tool is essentially used to globally match r...

commands
lclssb
linux
operating-system

PS

Linux Command Line and Shell Scripting ... Commands

PS stands for Process Status. man ps ps - report a snapshot of the current processes. Style Source Prefix Unix AT&T System of Bell Labs - BSD Berkeley Software Distribution None GNU Improved version by GNU Project -- Due to historical reasons, ...

operating-system
commands
lclssb
linux

Terminate Process

Linux Command Line and Shell Scripting ... Commands

Kill Command It's actually a tool for sending signals to processes, not necessarily killing them. man kill kill - send a signal to a process Default Signal The default signal for the kill command is SIGTERM, corresponding to number 15, for a graceful termin...

commands
lclssb
linux
operating-system

TOP

Linux Command Line and Shell Scripting ... Commands

man top top - display Linux processes The top command defaults to sorting processes by CPU usage rate and dynamically displaying the results. top - 09:19:05 up 6 days, 10:02, 2 users, load average: 0.13, 0.05, 0.01 Tasks: 126 total, 1 running, 125 sleepi...

operating-system
linux
commands
lclssb

kubectl edit

K8s Commands

https://kubernetes.io/docs/reference/kubectl/generated/kubectl_edit/ Examples Edit in JSON kubectl edit -o json deploy foo Change Editor KUBE_EDITOR="vim" kubectl edit deploy foo Save Config kubectl edit deploy foo --save-config 把本次修改后的完整资源配置,保存到 annotati...

commands
edit
kubectl
k8s

Commands

Linux Networking

ss summary ss -s Total: 1785 TCP: 2635 (estab 1564, closed 1026, orphaned 23, timewait 1013) Transport Total IP IPv6 RAW 0 0 0 UDP 2 1 1 TCP 1609 768 841 INET 1611 769 ...

sysctl
tcpdump
ss
tcp
commands
linux
operating-system

Commands

Docker Manual

Get Container Running Containersdocker ps All Containersdocker ps -a Inspect Container docker inspect foo Get Tail Logs docker logs --tail 100 xxx Get Mounts Info docker inspect foo | grep -A 10 -i mounts "Mounts": [ { "Type": "bind", ...

commands
docker

Commands

Linux Storage

iostat apt-get install -y sysstat iostat -x 1 iotop apt-get install iotop iotop -aoP lsblk lsblk lsblk -o NAME,SIZE,TYPE,MOUNTPOINT dmsetup ls lvdisplay cat /etc/fstab

commands
storage
linux
operating-system

Commands

Opensearch

Check Health curl http://172.17.0.2:9200/_cluster/health?pretty Set Replicas Num curl -X PUT "http://172.17.0.2:9200/_all/_settings" \ -H "Content-Type: application/json" \ -d '{ "number_of_replicas": 0 }' Enabled Performance...

commands
opensearch
database

Commands

MySQL Quick Start

Config Path mysql --help | grep -B 1 etc/my.cnf Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /opt/homebrew/etc/my.cnf ~/.my.cnf mysqldump With DB Creation User --databases mysqldump -hlocalhost -uroot -...

commands
mysqldump
mysql
database