Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
[Fix/Helm] Operator metrics configuration (#156)
Browse files Browse the repository at this point in the history
* fix operator metrics configuration

* append changelog
  • Loading branch information
erdrix authored Nov 12, 2021
1 parent c4edae6 commit 4684da5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### Fixed Bugs

- [PR #156](https://github.com/Orange-OpenSource/nifikop/pull/156) - **[Helm chart]** Operator metrics port configuration

## v0.7.2

### Added
Expand Down
3 changes: 2 additions & 1 deletion helm/nifikop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ The following tables lists the configurable parameters of the NiFi Operator Helm
| `certManager.enabled` | Enable cert-manager integration | `true` |
| `rbacEnable` | If true, create & use RBAC resources | `true` |
| `resources` | Pod resource requests & limits | `{}` |
| `metricService` | deploy service for metrics | `false` |
| `metrics.enabled` | deploy service for metrics | `false` |
| `metrics.port` | Set port for operator metrics | `8081` |
| `debug.enabled` | activate DEBUG log level | `false` |
| `certManager.clusterScoped` | If true setup cluster scoped resources | `false` |
| `namespaces` | List of namespaces where Operator watches for custom resources. Make sure the operator ServiceAccount is granted `get` permissions on this `Node` resource when using limited RBACs. | `""` i.e. all namespaces |
Expand Down
1 change: 1 addition & 0 deletions helm/nifikop/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ spec:
- command:
- /manager
args:
- metrics-bind-address={{.Values.metrics.port}}
- --leader-elect
{{- if .Values.certManager.enabled }}
- --cert-manager-enabled={{ .Values.certManager.enabled }}
Expand Down
4 changes: 2 additions & 2 deletions helm/nifikop/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.metricService }}
{{- if .Values.metrics.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -14,6 +14,6 @@ spec:
app: {{ template "nifikop.name" . }}
ports:
- name: metrics
port: 9710
port: {{ .Values.metrics.port }}
protocol: TCP
{{- end }}
6 changes: 4 additions & 2 deletions helm/nifikop/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ rbacEnable: true
serviceAccount:
create: true

## if true deploy service for metrics access
metricService: false
metrics:
## if true deploy service for metrics access
enabled: false
port: 8081

debug:
enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ The following tables lists the configurable parameters of the NiFi Operator Helm
| `certManager.enabled` | Enable cert-manager integration | `true` |
| `rbacEnable` | If true, create & use RBAC resources | `true` |
| `resources` | Pod resource requests & limits | `{}` |
| `metricService` | deploy service for metrics | `false` |
| `metrics.enabled` | deploy service for metrics | `false` |
| `metrics.port` | Set port for operator metrics | `8081` |
| `debug.enabled` | activate DEBUG log level | `false` |
| `certManager.clusterScoped` | If true setup cluster scoped resources | `false` |
| `namespaces` | List of namespaces where Operator watches for custom resources. Make sure the operator ServiceAccount is granted `get` permissions on this `Node` resource when using limited RBACs. | `""` i.e. all namespaces |
Expand Down

0 comments on commit 4684da5

Please sign in to comment.