Forked from iamcryptoki/install_kubectx_kubens_linux.txt
          
        
    
          Created
          March 29, 2023 13:37 
        
      - 
      
 - 
        
Save groundnuty/3021271f8daaae7c0a73fb0a5dc64891 to your computer and use it in GitHub Desktop.  
    Install kubectx and kubens on Linux.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sudo git clone https://github.com/ahmetb/kubectx /opt/kubectx | |
| sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx | |
| sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens | |
| echo "source /opt/kubectx/completion/kubectx.bash" >> ~/.bashrc | |
| echo "source /opt/kubectx/completion/kubens.bash" >> ~/.bashrc | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment