todd-dsm / mac-ops

QnD Automation to build a MacBook Pro for DevOps
MIT License
11 stars 7 forks source link

add kubectl #12

Closed todd-dsm closed 5 years ago

todd-dsm commented 6 years ago

add kubectl and completions

brew install kubectl

Bash completion is automatically installed to: /usr/local/etc/bash_completion.d

todd-dsm commented 5 years ago

Fixed

cat << EOF >> "$myBashrc"                                                           
############################################################################### 
###                              KUBERNETES                                 ### 
############################################################################### 
export HELM_HOME="\$HOME/.helm"                                                     
localKubes="\$HOME/.kube/config"                                                    
# testKubes="\$HOME/code/kubes/secrets/auth/kubes-config"                           
# stagKubes="\$HOME/code/kubes/secrets/auth/kubes-config"                           
# prodKubes="\$HOME/code/kubes/secrets/auth/kubes-config"                           
#export KUBECONFIG="\$localKubes:\$testKubes:\$stagKubes:\$prodKubes"               
export KUBECONFIG="\$localKubes"                                                    
#export KUBECONFIG_SAVED="\$KUBECONFIG"                                             
source <(kubectl  completion bash)                                              
source <(helm     completion bash)                                              
source <(minikube completion bash)                                              

EOF