Skip to content

Commit

Permalink
chore: added list deployment with label
Browse files Browse the repository at this point in the history
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
  • Loading branch information
ivankatliarchuk committed Aug 20, 2024
1 parent b8d56c2 commit 0d61885
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shell/aliase/kube
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ alias k.gnowojsonl='kubectl get nodes --watch -o=json -l'
# service with specific columns
alias k.svc-get='kubectl get svc -o=custom-columns=NAME:.metadata.name,IP:.spec.clusterIP,PORT:.spec.ports[*].targetPort'

# Deployments

# list all deployments with label 'helm.sh/chart-version'
kubectl get deployments -o custom-columns=NAME:.metadata.name,CHART_VERSION:".metadata.labels.helm\.sh/chart-version"

# Config view
alias k.c='kubectl config view'
# validate with dex folder structure
Expand Down

0 comments on commit 0d61885

Please sign in to comment.