kubectl-neat
kubectl-aliases
kubectl-neat | kubectl-aliases | |
---|---|---|
10 | 7 | |
1,571 | 3,266 | |
- | - | |
1.8 | 3.1 | |
4 months ago | 5 months ago | |
Go | Shell | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kubectl-neat
-
☸️ Kubernetes: A Pragmatic Kubectl Aliases Collection
It depends on kubectl-neat mentioned in pre-requisites.
-
Mounting volumes on pods
I if you are getting objects out in yaml i recomend you to use neat https://github.com/itaysk/kubectl-neat
-
Most Useful kubectl Plugins
Install [neat]((https://github.com/itaysk/kubectl-neat) plugin with krew :
- Operators are so much easier to click-install -- how do I get them back out as manifests?
-
All about Komodor :- A Kubernetes Troubleshooting Platform and more
Clean Now let’s talk about how you can use the "Clean" feature of ValidKube to clean and enhance your YAML files with an instant click. It's repository kubectl-neat is https://github.com/itaysk/kubectl-neat It works as shown in image below :-
-
[open-source] Validkube - Validate, Clean and Secure your K8s YAML
The idea behind Validkube is to fuse together the capabilities of three other popular open-source projects (kubeval, kubectl-neat & trivy) and present them in a single view, providing users with a way to ensure YAML code hygiene and security, in one place, with just a few clicks of the button.
- DevOps Environment on MacOS
-
Making Kubernetes Operations Easy with kubectl Plugins
neat - possibly my favourite of all the plugins is neat which removes all the generated, redundant fields from YAML output of Kubernetes resources. If you're tired of scrolling through all the managedFields and other garbage, then definitely give this one a try.
-
YAML output format question
There is a product that does this called kubectl-neat: https://github.com/itaysk/kubectl-neat
-
Store your Kubernetes Secrets in Git thanks to Kubeseal. Hello SealedSecret!
kubectl-neat (via Krew)
kubectl-aliases
-
☸️ Kubernetes: A Pragmatic Kubectl Aliases Collection
# autocomplete kubectl & helm source <(kubectl completion zsh) source <(helm completion zsh) alias k=kubectl # when using below aliases, print kubectl command and then execute it function kctl() { echo "+ kubectl $@" && command kubectl $@ } # add aliases collection like 'kgpo' for 'kubectl get pods` from https://github.com/ahmetb/kubectl-aliases [ ! -f ~/.kube/aliases.sh ] && curl -fsSL "https://raw.githubusercontent.com/ahmetb/kubectl-aliases/master/.kubectl_aliases" > ~/.kube/aliases.sh && sed -i -e 's/kubectl/kctl/g' ~/.kube/aliases.sh source ~/.kube/aliases.sh # set default namespace alias kn='kctl config set-context --current --namespace' # get events sorted by last timestamp alias kgel='kctl get events --sort-by=.lastTimestamp' # get events sorted by creation timestamp alias kgec='kctl get events --sort-by=.metadata.creationTimestamp' # get pod's descending events function kger() { kctl get events --sort-by=.lastTimestamp --field-selector involvedObject.name="$@" } # get 'real' all alias kgworld='kctl get $(kubectl api-resources --verbs=list --namespaced -o name | paste -sd ",")' # display all nodes resources request and limits alias kgnr="k get nodes --no-headers | awk '{print \$1}' | xargs -I {} sh -c 'echo {} ; kubectl describe node {} | grep Allocated -A 5 | grep -ve Event -ve Allocated -ve percent -ve -- ; echo '" # start a debug pod (including lots of troubleshooting tools) alias kdebug="kctl -n default run debug-$USER --rm -it --tty --image leodotcloud/swiss-army-knife:v0.12 --image-pull-policy=IfNotPresent -- bash" # get pod's containers list function kgpc() { kctl get pod -o jsonpath="{.spec.containers[*].name}" "$@" && echo "" } # ping a service, ex: 'kping whoami:8080' alias kping='kctl run httping -it --image bretfisher/httping --image-pull-policy=IfNotPresent --rm=true --' # get existing pod's yaml without forbidden fields, ex: 'kyaml pod whoami' function kyaml() { kubectl get "$@" -o yaml | kubectl-neat } # display and delete failed pods in current namespace alias krmfailed='kctl delete pods --field-selector=status.phase=Failed'
- Good and/or helpful aliases to know for CKA/CKAD/Daily use?
-
Aliasing kubectl with "kc"
I like https://github.com/ahmetb/kubectl-aliases because it helps keep the formal nomenclature in my head while providing faster terminal entry.
- What are your aliases?
- Most important discussion from KubeCon
-
Everything Useful I Know About kubectl
I would highly recommend not aliasing k to kubectl and instead get this: https://github.com/ahmetb/kubectl-aliases
- For local projects, do you change your node port range?
What are some alternatives?
ketall - Like `kubectl get all`, but get really all resources
kube-ps1 - Kubernetes prompt info for bash and zsh
kubelogin - kubectl plugin for Kubernetes OpenID Connect authentication (kubectl oidc-login)
metallb - A network load-balancer implementation for Kubernetes using standard routing protocols
kubectx - Faster way to switch between clusters and namespaces in kubectl
konfig - konfig helps to merge, split or import kubeconfig files
HomeBrew - 🍺 The missing package manager for macOS (or Linux)
ingress - WIP Caddy 2 ingress controller for Kubernetes
powerline-go - A beautiful and useful low-latency prompt for your shell, written in go
kutectl - A couple of bash aliases and functions to make your life easier when dealing with kubectl.
krew - 📦 Find and install kubectl plugins
kubectl-tmux-exec - A kubectl plugin to control multiple pods simultaneously using Tmux