Skip to content

Commit

Permalink
feat: allow to user NodePort type for service (#211)
Browse files Browse the repository at this point in the history
Allows  configuring Authelia's Service as a NodePort type.

Signed-off-by: Tchoupinax <corentinfiloche@hotmail.fr>
  • Loading branch information
Tchoupinax committed Oct 23, 2023
1 parent 344cc74 commit 5eac62d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.8.57
version: 0.8.58
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
5 changes: 4 additions & 1 deletion charts/authelia/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
annotations: {{ $annotations | nindent 4 }}
{{- end }}
spec:
type: ClusterIP
type: {{ .Values.service.type }}
{{- with $ip := .Values.service.clusterIP }}
clusterIP: {{ $ip }}
{{- end }}
Expand All @@ -22,6 +22,9 @@ spec:
protocol: TCP
port: {{ include "authelia.service.port" . }}
targetPort: http
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
{{- if and (semverCompare ">=4.36.0" (include "authelia.version" .)) .Values.configMap.telemetry.metrics.enabled }}
- name: metrics
protocol: TCP
Expand Down
3 changes: 2 additions & 1 deletion charts/authelia/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ rbac:
domain: example.com

service:
type: "ClusterIP"
annotations: {}
# annotations:
# myAnnotation: myValue
Expand All @@ -87,7 +88,7 @@ service:
# myLabel: myValue

port: 80

nodePort: 30091
# clusterIP:


Expand Down

0 comments on commit 5eac62d

Please sign in to comment.