Skip to content

Commit

Permalink
Add support for all log commands on the previous container for a pod …
Browse files Browse the repository at this point in the history
…(-p) (ahmetb#19)
  • Loading branch information
henricook authored and ahmetb committed Jan 31, 2019
1 parent 1b5976c commit 816eb23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .kubectl_aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017 Google Inc.
# Copyright 2019 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -20,6 +20,8 @@ alias kex='kubectl exec -i -t'
alias ksysex='kubectl --namespace=kube-system exec -i -t'
alias klo='kubectl logs -f'
alias ksyslo='kubectl --namespace=kube-system logs -f'
alias klop='kubectl logs -f -p'
alias ksyslop='kubectl --namespace=kube-system logs -f -p'
alias kp='kubectl proxy'
alias kg='kubectl get'
alias ksysg='kubectl --namespace=kube-system get'
Expand Down
1 change: 1 addition & 0 deletions generate_aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def main():
('a', 'apply --recursive -f', None, None),
('ex', 'exec -i -t', None, None),
('lo', 'logs -f', None, None),
('lop', 'logs -f -p', None, None),
('p', 'proxy', None, ['sys']),
('g', 'get', None, None),
('d', 'describe', None, None),
Expand Down

0 comments on commit 816eb23

Please sign in to comment.