mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-30 03:15:05 +00:00
fix: Adjust chart templates to handle hostNetwork set to true (#9864)
* fix(kyverno-chart): Adjust templates to handle hostNetwork set to true Signed-off-by: Chahdra Konlack <chahdra.konlack@equisoft.com> * Change containerPort of cleanup-controller to use server port instead Signed-off-by: Chahdra Konlack <chahdra.konlack@equisoft.com> --------- Signed-off-by: Chahdra Konlack <chahdra.konlack@equisoft.com> Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
1e09f22e59
commit
bb0cf4c985
4 changed files with 6 additions and 6 deletions
|
@ -189,10 +189,10 @@ spec:
|
|||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- containerPort: 9443
|
||||
- containerPort: {{ .Values.admissionController.webhookServer.port }}
|
||||
name: https
|
||||
protocol: TCP
|
||||
- containerPort: 8000
|
||||
- containerPort: {{ .Values.admissionController.metering.port }}
|
||||
name: metrics-port
|
||||
protocol: TCP
|
||||
{{ if .Values.admissionController.profiling.enabled }}
|
||||
|
|
|
@ -36,7 +36,7 @@ metadata:
|
|||
spec:
|
||||
ports:
|
||||
- port: {{ .Values.admissionController.metricsService.port }}
|
||||
targetPort: 8000
|
||||
targetPort: {{ .Values.admissionController.metering.port }}
|
||||
protocol: TCP
|
||||
name: metrics-port
|
||||
{{- if and (eq .Values.admissionController.metricsService.type "NodePort") (not (empty .Values.admissionController.metricsService.nodePort)) }}
|
||||
|
|
|
@ -80,10 +80,10 @@ spec:
|
|||
image: {{ include "kyverno.cleanup-controller.image" (dict "globalRegistry" .Values.global.image.registry "image" .Values.cleanupController.image "defaultTag" .Chart.AppVersion) | quote }}
|
||||
imagePullPolicy: {{ .Values.cleanupController.image.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: 9443
|
||||
- containerPort: {{ .Values.cleanupController.server.port }}
|
||||
name: https
|
||||
protocol: TCP
|
||||
- containerPort: 8000
|
||||
- containerPort: {{ .Values.cleanupController.metering.port }}
|
||||
name: metrics
|
||||
protocol: TCP
|
||||
{{ if .Values.cleanupController.profiling.enabled }}
|
||||
|
|
|
@ -39,7 +39,7 @@ metadata:
|
|||
spec:
|
||||
ports:
|
||||
- port: {{ .Values.cleanupController.metricsService.port }}
|
||||
targetPort: 8000
|
||||
targetPort: {{ .Values.cleanupController.metering.port }}
|
||||
protocol: TCP
|
||||
name: metrics-port
|
||||
{{- if and (eq .Values.cleanupController.metricsService.type "NodePort") (not (empty .Values.cleanupController.metricsService.nodePort)) }}
|
||||
|
|
Loading…
Add table
Reference in a new issue