diff --git a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml index e7166aeca..7d1e09dd7 100644 --- a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml @@ -1138,7 +1138,7 @@ spec: {{- if .Values.kubecostFrontend.securityContext }} securityContext: {{- toYaml .Values.kubecostFrontend.securityContext | nindent 12 }} - {{- else if .Values.global.containerSecurityContext }} + {{- else if and .Values.global.containerSecurityContext (gt $nginxPort 1025) }} securityContext: {{- toYaml .Values.global.containerSecurityContext | nindent 12 }} {{- end }}