amelbakry / kubernetes-scripts

Kubernetes scripts to troubleshoot and check the health status of the cluster and deployments
37 stars 36 forks source link

cluster-health crashes upon run #4

Open haf opened 5 years ago

haf commented 5 years ago
-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)

amelbakry commented 5 years ago

@haf You got this error in Mac or Linux?

haf commented 5 years ago

macOS

amelbakry commented 4 years ago

@haf Sorry. not able to reproduce it as I don't have Mac. Maybe you can run it in a pod that have service account like https://github.com/amelbakry/kube-admin-pod

haf commented 4 years ago

@amelbakry I use zsh so perhaps it's particular to that shell rather than the OS?