Update comment about restart of pod
This commit is contained in:
parent
d7f7e16cc8
commit
14acc186f0
1 changed files with 2 additions and 6 deletions
|
@ -337,13 +337,9 @@ func (n *NGINXController) Start() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the nginx master process dies the workers continue to process requests,
|
// if the nginx master process dies, the workers continue to process requests
|
||||||
// passing checks but in case of updates in ingress no updates will be
|
// until the failure of the configured livenessProbe and restart of the pod.
|
||||||
// reflected in the nginx configuration which can lead to confusion and report
|
|
||||||
// issues because of this behavior.
|
|
||||||
// To avoid this issue we restart nginx in case of errors.
|
|
||||||
if process.IsRespawnIfRequired(err) {
|
if process.IsRespawnIfRequired(err) {
|
||||||
// release command resources
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue