@@ -106,7 +106,7 @@ API to update the handled resources' statuses and emit events.
106
106
- Read: * NKG* reads the PID file ` nginx.pid ` from the ` nginx-run ` volume, located at ` /var/run/nginx ` . * NKG*
107
107
extracts the PID of the nginx process from this file in order to send reload signals to * NGINX master* .
108
108
4 . (File I/O) * NKG* writes logs to its * stdout* and * stderr* , which are collected by the container runtime.
109
- 5 . (HTTP) * NKG* fetches the NGINX metrics via the unix:/var/lib /nginx/nginx-status.sock UNIX socket and converts it to
109
+ 5 . (HTTP) * NKG* fetches the NGINX metrics via the unix:/var/run /nginx/nginx-status.sock UNIX socket and converts it to
110
110
* Prometheus* format used in #2 .
111
111
6 . (Signal) To reload NGINX, * NKG* sends the [ reload signal] [ reload ] to the ** NGINX master** .
112
112
7 . (File I/O)
@@ -124,9 +124,12 @@ API to update the handled resources' statuses and emit events.
124
124
9 . (File I/O) The * NGINX master* sends logs to its * stdout* and * stderr* , which are collected by the container runtime.
125
125
10 . (File I/O) An * NGINX worker* writes logs to its * stdout* and * stderr* , which are collected by the container runtime.
126
126
11 . (Signal) The * NGINX master* controls the [ lifecycle of * NGINX workers* ] [ lifecycle ] it creates workers with the new
127
- configuration and shutdowns workers with the old configuration.
128
- 12 . (HTTP,HTTPS) A * client* sends traffic to and receives traffic from any of the * NGINX workers* on ports 80 and 443.
129
- 13 . (HTTP,HTTPS) An * NGINX worker* sends traffic to and receives traffic from the * backends* .
127
+ configuration and shutdowns workers with the old configuration.
128
+ 12 . (HTTP) To consider a configuration reload a success, * NKG* ensures that at least one NGINX worker has the new
129
+ configuration. To do that, * NKG* checks a particular endpoint via the unix:/var/run/nginx/nginx-config-version.sock
130
+ UNIX socket.
131
+ 13 . (HTTP,HTTPS) A * client* sends traffic to and receives traffic from any of the * NGINX workers* on ports 80 and 443.
132
+ 14 . (HTTP,HTTPS) An * NGINX worker* sends traffic to and receives traffic from the * backends* .
130
133
131
134
[ controller ] : https://kubernetes.io/docs/concepts/architecture/controller/
132
135
0 commit comments