Files
helm-k3s/clusters/default/apps/authelia/templates/authelia-svc.yaml
2025-07-04 19:51:51 +05:30

23 lines
570 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.name }}-service"
namespace: {{ .Values.namespace }}
spec:
{{- if eq .Values.service.type "NodePort" }}
type: NodePort
{{- else if eq .Values.service.type "LoadBalancer" }}
type: LoadBalancer
{{- end }}
selector:
app: {{ .Values.name }}
ports:
- targetPort: 9091
protocol: TCP
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.service.nodePort }}
{{- else if eq .Values.service.type "LoadBalancer" }}
port: {{ .Values.service.port }}
{{- end }}