Skip to content

k8s nginx hot reload k8s nginx 热更新、原地更新配置

Notifications You must be signed in to change notification settings

cheerego/nginx-reloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K8S Nginx Hot Reloader

Know-Why

  • share-process-namespace
    • Processes are visible to other containers in the pod.
    • Container filesystems are visible to other containers in the pod through the /proc/$pid/root link.
  • SideCar Container
  • Go program
    • kill -HUP pid.
    • Watch nginx config dirs.
    • Event debounce.
  • configmap updated automatically

How-Use

  • example nginx-reloader.yml
  • enable shareProcessNamespace
  • TIME_AFTER_SECONDS, Event debounce default second.
  • WATCH_DIRS, split by comma, like /etc/nginx,/etc/nginx/conf.d

About

k8s nginx hot reload k8s nginx 热更新、原地更新配置

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published