19 lines
528 B
YAML
19 lines
528 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "pep-server.appName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "pep-server.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.pepServer.service.type }}
|
|
selector:
|
|
{{- include "pep-server.selectorLabels" . | nindent 4 }}
|
|
ports:
|
|
{{- range $port := .Values.pepServer.service.ports }}
|
|
- name: {{ $port.name }}
|
|
protocol: {{ $port.protocol }}
|
|
port: {{ $port.port }}
|
|
targetPort: {{ $port.targetPort }}
|
|
{{- end }}
|