Files
helm-charts-hardened/charts/spire/charts/spire-server/templates/tornjak-service.yaml
T

27 lines
789 B
YAML

{{- if eq (.Values.tornjak.enabled | toString) "true" }}
apiVersion: v1
kind: Service
metadata:
namespace: {{ include "spire-server.namespace" . }}
name: {{ include "spire-tornjak.servicename" . }}
{{- with .Values.tornjak.service.annotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "spire-server.labels" . | nindent 4 }}
spec:
type: {{ .Values.tornjak.service.type }}
selector:
{{- include "spire-server.selectorLabels" . | nindent 4 }}
ports:
- name: tornjak-srv-http
port: {{ .Values.tornjak.service.ports.http }}
targetPort: tornjak-http
protocol: TCP
- name: tornjak-srv-https
port: {{ .Values.tornjak.service.ports.https }}
targetPort: tornjak-https
protocol: TCP
{{- end }}