Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Find all pods that status is NotReady jq cheatsheet

kubectl -n test-ns get pods -ojson | jq '.items[] | select(.status.containerStatuses[].ready==false) | .metadata.name'
Comment

Find all pods that status is NotReady jq cheatsheet

kubectl get pods -ojson | jq '.items[] | {ns:.metadata.namespace, name:.metadata.name,image:.spec.containers[].image} | @csv'
Comment

Find all pods that status is NotReady jq cheatsheet

kubectl get nodes -o json |   jq -r '.items | sort_by(.status.capacity.memory)[]|[.metadata.name,.status.capacity.memory,.status.allocatable.memory] | @csv'
Comment

PREVIOUS NEXT
Code Example
Shell :: redirect https://www.domain to https://domain apache2 
Shell :: remove inkscape older version 
Shell :: using awk and cat and grep 
Shell :: ssh key meaning 
Shell :: Bash Script To Clean 2+ Days Old Autobackup 
Shell :: crosh package manager 
Shell :: how to zip current directory in linux 
Shell :: how to change to previous directory 
Shell :: docker run name container 
Shell :: ubuntu install jitsi 
Shell :: ufw rules 
Shell :: npm global package not found 
Shell :: fatal error: jansson.h: Aucun fichier ou dossier de ce type 
Shell :: mysql password inline cli 
Shell :: linux copy with different name 
Shell :: du show only total 
Shell :: convert powershell function to c# 
Shell :: how to stay opened ubuntu run in terminal 
Shell :: split command in linux 
Shell :: ubuntu keyboard like mac 
Shell :: fish shell redirect stderr and stdout 
Shell :: redirect error files to different file linux 
Shell :: ros galactic build 
Shell :: exporting samtools to path 1.13 
Shell :: conda install opencv linux server 
Shell :: exec format error Heroku dockerfile 
Shell :: Run the commands for your corresponding operating system: 
Shell :: Payload create wireless network association (auto connect) pineapple 
Shell :: Git - switch to specific branch (ex: "feature") 
Shell :: gitattributes -diff 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =