file=(
namespace.yaml
configmap.yaml
rbac.yaml tcp-services-configmap.yaml
with-rbac.yaml
udp-services-configmap.yaml
default-backend.yaml
)
for file in ${file[@]}
do
wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/$file
done
pods=$(kubectl get po -n kube-system|grep Node|awk '{print $1}')
for po in ${pods[@]}
do
echo $po
done
kubectl delete po $po -n kube-system
docker images|grep none|awk '{print $3}'|xargs docker rmi -f
for ((i=1; i<=100; i ++))
do
echo $i
done
docker tag e2aec6996443 192.168.66.4:80/kubesphere/ks-console$i:v1.1
docker push 192.168.66.4:80/kubesphere/ks-console$i:v1.1
sed -i "s/原字符串/新字符串/g" filename
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
- 32.
- 33.
- 34.
- 35.
- 36.