Differences

This shows you the differences between two versions of the page.

Link to this comparison view

devops:настройка_оболочки_для_удобной_работы [2020/12/28 10:03] (current)
admin created
Line 1: Line 1:
 +  sudo apt-get -y install python3-pip python-pip 
 +  sudo pip install PyYaml 
 +  sudo pip3 install PyYaml 
 +  sudo wget https://raw.githubusercontent.com/lbolla/kube-secret-editor/master/kube-secret-editor.py -O /usr/local/bin/kube-secret-editor.py 
 +  sudo chmod a+x /usr/local/bin/kube-secret-editor.py 
 +  alias kedit-secret="EDITOR=nano KUBE_EDITOR=/usr/local/bin/kube-secret-editor.py kubectl edit secret" 
 +  sudo awk -v line='alias kedit-secret="EDITOR=nano KUBE_EDITOR=/usr/local/bin/kube-secret-editor.py kubectl edit secret"' 'FNR==NR && line==$0{f=1; exit} END{if (!f) print line >> FILENAME}' /etc/bash.bashrc 
 +  sudo awk -v line='export KUBE_EDITOR="/bin/nano"' 'FNR==NR && line==$0{f=1; exit} END{if (!f) print line >> FILENAME}' /etc/bash.bashrc 
 +  sudo awk -v line='source <(kubectl completion bash)' 'FNR==NR && line==$0{f=1; exit} END{if (!f) print line >> FILENAME}' /etc/bash.bashrc 
 +  
  • devops/настройка_оболочки_для_удобной_работы.txt
  • Last modified: 2020/12/28 10:03
  • by admin