A Collection of Plugins for kubectl Integration (exec as any user, context switching, etc).
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
misteruly opened this issue 3 years ago · comments
for i in kubectl -n spring get pod -o wide | grep harbor | awk '{print $1}';do kubectl exec-as -u root -n spring $i -- echo "192.168.0.3 harbor.kubesphere.lan" >> /etc/hosts;done
kubectl -n spring get pod -o wide | grep harbor | awk '{print $1}'
It didn't go back in