Skip to content

Commit

Permalink
Merge pull request #337 from raif-ahmed/master
Browse files Browse the repository at this point in the history
add helm parameter to enable 'ENFORCER_STATS' env variable
  • Loading branch information
becitsthere authored Nov 29, 2023
2 parents 8c4cc00 + 92bbb31 commit 2a1fb42
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Parameter | Description | Default | Notes
`exporter.ctrlSecretName` | existing secret that have CTRL_USERNAME and CTRL_PASSWORD fields to login to the controller. | `nil` | if parameter exists then `exporter.CTRL_USERNAME` & `exporter.CTRL_PASSWORD` will be skipped
`exporter.CTRL_USERNAME` | Username to login to the controller. Suggest to replace the default admin user to a read-only user | `admin` |
`exporter.CTRL_PASSWORD` | Password to login to the controller. | `admin` |

`exporter.enforcerStats.enabled` | If true, enable the Enforcers stats | `false` | For the performance reason, by default the exporter does NOT pull CPU/memory usage from enforcers.
---
Contact <[email protected]> for access to Docker Hub and docs.

4 changes: 4 additions & 0 deletions charts/monitor/templates/exporter-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ spec:
value: {{ .Values.exporter.apiSvc }}
- name: EXPORTER_PORT
value: "8068"
{{- if .Values.exporter.enforcerStats }}
- name: ENFORCER_STATS
value: "{{.Values.exporter.enforcerStats.enabled | default "false"}}"
{{- end }}
envFrom:
- secretRef:
{{- if .Values.exporter.ctrlSecretName }}
Expand Down
4 changes: 3 additions & 1 deletion charts/monitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ exporter:
# changes this to a readonly user !
CTRL_USERNAME: admin
CTRL_PASSWORD: admin
ctrlSercretName: ''
enforcerStats:
enabled: false
ctrlSecretName: ''

apiSvc: neuvector-svc-controller-api:10443

svc:
Expand Down

0 comments on commit 2a1fb42

Please sign in to comment.