first commit
This commit is contained in:
18
templates/sink-agent/service.yaml
Normal file
18
templates/sink-agent/service.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "sink-agent.appName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "sink-agent.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.sinkAgent.service.type }}
|
||||
selector:
|
||||
{{- include "sink-agent.selectorLabels" . | nindent 4 }}
|
||||
ports:
|
||||
{{- range $port := .Values.sinkAgent.service.ports }}
|
||||
- name: {{ $port.name }}
|
||||
protocol: {{ $port.protocol }}
|
||||
port: {{ $port.port }}
|
||||
targetPort: {{ $port.targetPort }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user