Add nodePort configuration for Fluentd (#9071)

Statically assign nodePort

Signed-off-by: Johnathan Rodgers <jrodgers@powerhrg.com>
This commit is contained in:
Johnathan Rodgers
2019-01-07 10:38:11 -08:00
committed by Kubernetes Prow Robot
parent 37bfb62560
commit 08bee4b999
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: A Fluentd Elasticsearch Helm chart for Kubernetes.
icon: https://raw.githubusercontent.com/fluent/fluentd-docs/master/public/logo/Fluentd_square.png
name: fluentd
version: 1.2.0
version: 1.3.0
appVersion: v2.3.1
home: https://www.fluentd.org/
sources:
+3
View File
@@ -16,6 +16,9 @@ spec:
targetPort: {{ $port.containerPort }}
protocol: {{ $port.protocol }}
{{- end }}
{{ if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{ .Values.service.nodePort }}
{{ end }}
selector:
app: {{ template "fluentd.name" . }}
release: {{ .Release.Name }}
+1
View File
@@ -21,6 +21,7 @@ env: {}
service:
type: ClusterIP
# type: nodePort:
externalPort: 80
ports:
- name: "monitor-agent"