Change nginx status port to 18080 to avoid conflicts with port 8080

This commit is contained in:
Manuel de Brito Fontes 2016-07-19 16:15:48 -04:00
parent 0d1dd32567
commit 3ef038c557
3 changed files with 5 additions and 5 deletions

View file

@ -291,7 +291,7 @@ http {
# default server, including healthcheck
server {
listen 8080 default_server reuseport backlog={{ .backlogSize }};
listen 18080 default_server reuseport backlog={{ .backlogSize }};
location /healthz {
access_log off;

View file

@ -101,7 +101,7 @@ func (ngx Manager) Name() string {
// Check returns if the nginx healthz endpoint is returning ok (status code 200)
func (ngx Manager) Check(_ *http.Request) error {
res, err := http.Get("http://127.0.0.1:8080/healthz")
res, err := http.Get("http://127.0.0.1:18080/healthz")
if err != nil {
return err
}

View file

@ -93,10 +93,10 @@ spec:
hostPort: 80
- containerPort: 443
hostPort: 443
# we expose 8080 to access nginx stats in url /nginx-status
# we expose 18080 to access nginx stats in url /nginx-status
# this is optional
- containerPort: 8080
hostPort: 8080
- containerPort: 18080
hostPort: 18080
args:
- /nginx-ingress-controller
- --default-backend-service=default/default-http-backend