-
Notifications
You must be signed in to change notification settings - Fork 0
/
alias_kube
31 lines (29 loc) · 920 Bytes
/
alias_kube
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
##################################
####### KUBERNETES ALIASES #######
alias k='kubectl'
# Actions:
alias get='kubectl get'
alias delete='kubectl delete'
alias describe='kubectl describe'
alias logs='kubectl logs'
alias enter='kubectl exec -it'
alias drain_node='kubectl drain --ignore-daemonsets --delete-local-data --force'
# Get Resources:
alias all='kubectl get all'
alias certs='kubectl get certificates'
alias cm='kubectl get configmap'
alias crd='kubectl get crd'
alias crds='crd'
alias deployments='kubectl get deployments'
alias endpoints='kubectl get endpoints'
alias events='kubectl get events'
alias ingress='kubectl get ingress'
alias job='kubectl get jobs'
alias ns='kubectl get namespaces'
alias nodes='kubectl get nodes -o wide'
alias pods='kubectl get pods'
alias pv='kubectl get pv'
alias pvc='kubectl get pvc'
alias sc='kubectl get sc'
alias secrets='kubectl get secrets'
alias svc='kubectl get svc'