[k8s] nginx reload


๐Ÿ’ก k8s๋‚ด์˜ nginx๋ฅผ reloadํ•˜๋Š”๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด์ž

nginx reload

  1. kubectl get all -n ingress-nginx ๋กœ nginx ํŒŒ๋“œ ํ™•์ธ
  2. ์ธ๊ทธ๋ ˆ์Šค์— bash shell ์ง„์ž…
    • kubectl exec -it '์ธ๊ทธ๋ ˆ์Šค pod๋ช…' -n ingress-nginx bash
  3. nginx ๋ฒ„์ „ ํ™•์ธ nginx -v
  4. nginx reload nignx -s reload

ingress restart

์•„์˜ˆ ingress controller ๋ฐ๋ชฌ์…‹์„ ์žฌ์‹œ์ž‘ํ•˜๋ฉด nginx๋„ ์ž๋™์œผ๋กœ ๋ฆฌ๋กœ๋“œ๋˜๋ฏ€๋กœ.. ๋ฌธ์ œ๊ฐ€์—†๋‹ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ํ•ด๋„๋œ๋‹ค.

kubectl rollout restart ds ingress-nginx-controller -n ingress-nginx





ยฉ 2020. by berrrrr

Powered by berrrrr