Skip to content

Commit

Permalink
Change healthz port to avoid conflicts when running using hostNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Aug 3, 2016
1 parent 0f70b80 commit 4fe3462
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 13 deletions.
7 changes: 7 additions & 0 deletions controllers/nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This is a nginx Ingress controller that uses [ConfigMap](https://github.com/kube
* [NGINX customization](configuration.md)
* [NGINX status page](#nginx-status-page)
* [Disabling NGINX ingress controller](#disabling-nginx-ingress-controller)
* [Local cluster](#local-cluster)
* [Debug & Troubleshooting](#troubleshooting)
* [Limitations](#limitations)
* [NGINX Notes](#nginx-notes)
Expand Down Expand Up @@ -343,6 +344,12 @@ To extract the information in JSON format the module provides a custom URL: `/ng

Setting the annotation `kubernetes.io/ingress.class` to any value other than "nginx" or the empty string, will force the NGINX Ingress controller to ignore your Ingress. Do this if you wish to use one of the other Ingress controllers at the same time as the NGINX controller.

### Local cluster

Using [`hack/local-up-cluster.sh`](https://github.com/kubernetes/kubernetes/blob/master/hack/local-up-cluster.sh) is possible to start a local kubernetes cluster consisting of a master and a single node. Please read [running-locally.md](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/running-locally.md) for more details.

Use of `hostNetwork: true` in the ingress controller is required to falls back at localhost:8080 for the apiserver if every other client creation check fails (eg: service account not present, kubeconfig doesn't exist, no master env vars...)


### Debug & Troubleshooting

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/examples/daemonset/as-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/examples/default/rc-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/examples/full/rc-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/examples/proxy-protocol/nginx-rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/examples/tcp/rc-tcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/examples/tls/rc-ssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/examples/udp/rc-udp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import (
)

const (
healthPort = 10249
healthPort = 10254
)

var (
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 10249
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down

0 comments on commit 4fe3462

Please sign in to comment.