Skip to content

Commit

Permalink
Enable report-ingress-status by default
Browse files Browse the repository at this point in the history
Also add get permissions on ingress resources, needed when the status
updater is retrying a status update.
  • Loading branch information
isaac committed Aug 16, 2018
1 parent c1e723a commit 46500c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Parameter | Description | Default
`controller.useIngressClassOnly` | Ignore Ingress resources without the `"kubernetes.io/ingress.class"` annotation. | false
`controller.watchNamespace` | Namespace to watch for Ingress resources. By default the Ingress controller watches all namespaces. | ""
`controller.healthStatus` | Add a location "/nginx-health" to the default server. The location responds with the 200 status code for any request. Useful for external health-checking of the Ingress controller. | false
`controller.reportIngressStatus.enable` | Update the address field in the status of Ingresses resources with an external address of the Ingress controller. You must also specify the source of the external address either through an external service via `controller.reportIngressStatus.externalService` or the `external-status-address` entry in the ConfigMap via `controller.config.entries`. **Note:** `controller.config.entries.external-status-address` takes precedence if both are set. | false
`controller.reportIngressStatus.enable` | Update the address field in the status of Ingresses resources with an external address of the Ingress controller. You must also specify the source of the external address either through an external service via `controller.reportIngressStatus.externalService` or the `external-status-address` entry in the ConfigMap via `controller.config.entries`. **Note:** `controller.config.entries.external-status-address` takes precedence if both are set. | true
`controller.reportIngressStatus.externalService` | Specifies the name of the service with the type LoadBalancer through which the Ingress controller is exposed externally. The external address of the service is used when reporting the status of Ingress resources. `controller.reportIngressStatus.enable` must be set to `true`. | nginx-ingress
`controller.reportIngressStatus.enableLeaderElection` | Enable Leader election to avoid multiple replicas of the controller reporting the status of Ingress resources. `controller.reportIngressStatus.enable` must be set to `true`. | true
`rbac.create` | Configures RBAC. | true
Expand Down
1 change: 1 addition & 0 deletions helm-chart/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ rules:
resources:
- ingresses
verbs:
- get
- list
- watch
{{- if .Values.controller.reportIngressStatus.enable }}
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/values-plus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ controller:
annotations: {}
serviceAccountName: nginx-ingress
reportIngressStatus:
enable: false
enable: true
externalService: nginx-ingress
enableLeaderElection: true
rbac:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ controller:
annotations: {}
serviceAccountName: nginx-ingress
reportIngressStatus:
enable: false
enable: true
externalService: nginx-ingress
enableLeaderElection: true
rbac:
Expand Down

0 comments on commit 46500c1

Please sign in to comment.