amelbakry / kubernetes-scripts Goto Github PK
View Code? Open in Web Editor NEWKubernetes scripts to troubleshoot and check the health status of the cluster and deployments
Kubernetes scripts to troubleshoot and check the health status of the cluster and deployments
i have error:
» zkubectl
zsh: command not found: zkubectl
so it would be wise to allow use specific command/alias for each command
use:
kubectl get xxx --all-namespaces --no-headers | wc -l
instead of
kubectl get xxx --all-namespaces | grep -v NAMESPACE | wc -l
From K8s version 1.16v onwards roles of nodes are not coming and due to this below code output is coming as zero
echo -e "\e[1m\e[39mCluster Node Status:\e[21m"
echo -e "${BLUE}"ALL Nodes" :${GREEN}$nodes"
echo -e "${BLUE}"Worker Nodes" :${GREEN}$worker"
echo -e "${BLUE}"Master Nodes" :${GREEN}$master"
echo -e "${BLUE}"Nodes Status" :${GREEN}$node_status"
output
Cluster Node Status: ALL Nodes :19 Worker Nodes :0 Master Nodes :0 Nodes Status :Ready
-e \e[1m\e[39mTop Pods According to CPU Limits:\e[21m
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
[-e pattern] [-f file] [--binary-files=value] [--color=when]
[--context[=num]] [--directories=action] [--label] [--line-buffered]
[--null] [pattern] [file ...]
It also prints ANSI escape codes (despite the terminal supporting them)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.