nginx 刷新

NGINX_PODNAME=$(kubectl get pod | grep community-nginx | awk ‘{print $1}’)

echo $NGINX_PODNAME

kubectl exec -it $NGINX_PODNAME — nginx -c /etc/nginx/nginx.conf

kubectl exec -it $NGINX_PODNAME — nginx -s reload

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注