1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00

Make ports configurable for background-controller & reports-controller (#9939)

Signed-off-by: Richard Clark <richard@rvvup.com>
Co-authored-by: Richard Clark <richard@rvvup.com>
This commit is contained in:
rdark 2024-03-28 15:05:19 +00:00 committed by GitHub
parent 6344b85954
commit 0655f9c59d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 18 additions and 6 deletions

View file

@ -511,6 +511,7 @@ The chart values are organised per component.
| backgroundController.metering.port | int | `8000` | Prometheus endpoint port |
| backgroundController.metering.collector | string | `""` | Otel collector endpoint |
| backgroundController.metering.creds | string | `""` | Otel collector credentials |
| backgroundController.server | object | `{"port":9443}` | backgroundController server port in case you are using hostNetwork: true, you might want to change the port the backgroundController is listening to |
| backgroundController.profiling.enabled | bool | `false` | Enable profiling |
| backgroundController.profiling.port | int | `6060` | Profiling endpoint port |
| backgroundController.profiling.serviceType | string | `"ClusterIP"` | Service type. |
@ -666,6 +667,7 @@ The chart values are organised per component.
| reportsController.metering.port | int | `8000` | Prometheus endpoint port |
| reportsController.metering.collector | string | `nil` | Otel collector endpoint |
| reportsController.metering.creds | string | `nil` | Otel collector credentials |
| reportsController.server | object | `{"port":9443}` | reportsController server port in case you are using hostNetwork: true, you might want to change the port the reportsController is listening to |
| reportsController.profiling.enabled | bool | `false` | Enable profiling |
| reportsController.profiling.port | int | `6060` | Profiling endpoint port |
| reportsController.profiling.serviceType | string | `"ClusterIP"` | Service type. |

View file

@ -80,10 +80,10 @@ spec:
image: {{ include "kyverno.background-controller.image" (dict "globalRegistry" .Values.global.image.registry "image" .Values.backgroundController.image "defaultTag" .Chart.AppVersion) | quote }}
imagePullPolicy: {{ .Values.backgroundController.image.pullPolicy }}
ports:
- containerPort: 9443
- containerPort: {{ .Values.backgroundController.server.port }}
name: https
protocol: TCP
- containerPort: 8000
- containerPort: {{ .Values.backgroundController.metering.port }}
name: metrics
protocol: TCP
{{ if .Values.backgroundController.profiling.enabled }}

View file

@ -15,7 +15,7 @@ metadata:
spec:
ports:
- port: {{ .Values.backgroundController.metricsService.port }}
targetPort: 8000
targetPort: {{ .Values.backgroundController.metering.port }}
protocol: TCP
name: metrics-port
{{- if and (eq .Values.backgroundController.metricsService.type "NodePort") (not (empty .Values.backgroundController.metricsService.nodePort)) }}

View file

@ -80,10 +80,10 @@ spec:
image: {{ include "kyverno.reports-controller.image" (dict "globalRegistry" .Values.global.image.registry "image" .Values.reportsController.image "defaultTag" .Chart.AppVersion) | quote }}
imagePullPolicy: {{ .Values.reportsController.image.pullPolicy }}
ports:
- containerPort: 9443
- containerPort: {{ .Values.reportsController.server.port }}
name: https
protocol: TCP
- containerPort: 8000
- containerPort: {{ .Values.reportsController.metering.port }}
name: metrics
protocol: TCP
{{ if .Values.reportsController.profiling.enabled }}

View file

@ -15,7 +15,7 @@ metadata:
spec:
ports:
- port: {{ .Values.reportsController.metricsService.port }}
targetPort: 8000
targetPort: {{ .Values.reportsController.metering.port }}
protocol: TCP
name: metrics-port
{{- if and (eq .Values.reportsController.metricsService.type "NodePort") (not (empty .Values.reportsController.metricsService.nodePort)) }}

View file

@ -1536,6 +1536,11 @@ backgroundController:
# -- Otel collector credentials
creds: ''
# -- backgroundController server port
# in case you are using hostNetwork: true, you might want to change the port the backgroundController is listening to
server:
port: 9443
profiling:
# -- Enable profiling
enabled: false
@ -2129,6 +2134,11 @@ reportsController:
# -- (string) Otel collector credentials
creds: ~
# -- reportsController server port
# in case you are using hostNetwork: true, you might want to change the port the reportsController is listening to
server:
port: 9443
profiling:
# -- Enable profiling
enabled: false