1KUBERNETES(1)(kubernetes)                            KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7

NAME

9       kubeadm  completion  -  Output  shell completion code for the specified
10       shell (bash or zsh)
11
12
13

SYNOPSIS

15       kubeadm completion [OPTIONS]
16
17
18

DESCRIPTION

20       Output shell completion code for the specified  shell  (bash  or  zsh).
21       The  shell  code must be evaluated to provide interactive completion of
22       kubeadm commands. This can be done by sourcing it from  the  .bash_pro‐
23       file.
24
25
26       Note: this requires the bash-completion framework.
27
28
29       To install it on Mac use homebrew:
30           $ brew install bash-completion Once installed, bash_completion must
31       be evaluated. This can be done by adding  the  following  line  to  the
32       .bash_profile
33           $ source $(brew --prefix)/etc/bash_completion
34
35
36       If bash-completion is not installed on Linux, please install the 'bash-
37       completion' package via your distribution's package manager.
38
39
40       Note for zsh users: [1] zsh completions are only supported in  versions
41       of zsh >= 5.2
42
43
44

OPTIONS INHERITED FROM PARENT COMMANDS

46       --azure-container-registry-config=""       Path  to the file containing
47       Azure container registry configuration information.
48
49
50       --rootfs=""      [EXPERIMENTAL]  The  path  to  the  'real'  host  root
51       filesystem.
52
53
54       --version=false      Print version information and quit
55
56
57

EXAMPLE

59              # Install bash completion on a Mac using homebrew
60              brew install bash-completion
61              printf "\n# Bash completion support\nsource $(brew --prefix)/etc/bash_completion\n" >> $HOME/.bash_profile
62              source $HOME/.bash_profile
63
64              # Load the kubeadm completion code for bash into the current shell
65              source <(kubeadm completion bash)
66
67              # Write bash completion code to a file and source it from .bash_profile
68              kubeadm completion bash > ~/.kube/kubeadm_completion.bash.inc
69              printf "\n# Kubeadm shell completion\nsource '$HOME/.kube/kubeadm_completion.bash.inc'\n" >> $HOME/.bash_profile
70              source $HOME/.bash_profile
71
72              # Load the kubeadm completion code for zsh[1] into the current shell
73              source <(kubeadm completion zsh)
74
75
76
77

SEE ALSO

79       kubeadm(1),
80
81
82

HISTORY

84       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
85       com) based on the kubernetes source material, but hopefully  they  have
86       been automatically generated since!
87
88
89
90Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum