$ for i in 0 1; do kubectl exec web-$i -- sh -c 'echo hello $(hostname) > /usr/share/nginx/html/index.html'; done 相关文章: 2022-12-23 2022-12-23 2021-06-24 2021-07-09 2022-12-23 2021-06-06 2022-12-23 2021-06-18