Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions charts/plex-media-server/templates/httproute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{- if .Values.httpRoute.enabled -}}
---
Comment thread
alphayax marked this conversation as resolved.
Outdated
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ include "pms-chart.fullname" . }}
labels: {{ include "pms-chart.labels" . | nindent 4 }}
{{- with .Values.httpRoute.annotations }}
annotations: {{ toYaml . | nindent 4 }}
{{- end }}

spec:
{{- with .Values.httpRoute.parentRefs }}
parentRefs: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.httpRoute.hostnames }}
hostnames: {{ toYaml . | nindent 4 }}
{{- end }}
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: {{ include "pms-chart.fullname" . }}
port: {{ .Values.service.port }}
Comment thread
alphayax marked this conversation as resolved.
Outdated
{{- end -}}
Comment thread
alphayax marked this conversation as resolved.
Outdated
19 changes: 19 additions & 0 deletions charts/plex-media-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ ingress:
# -- Custom annotations to put on the ingress resource
annotations: {}

httpRoute:
# -- Specify if an HTTPRoute resource for the pms server should be created or not
enabled: false

# -- Gateway API parent references (required when enabled)
# @default -- `[]`
parentRefs: []
# - name: my-gateway
# namespace: gateway-namespace
# sectionName: https

# -- Hostnames to match for the HTTPRoute
# @default -- `[]`
hostnames: []
# - plex.example.com

# -- Custom annotations to put on the HTTPRoute resource
annotations: {}

pms:
# -- The storage class to use when provisioning the pms config volume
# this needs to be created manually, null will use the default
Expand Down
Loading