diff --git a/k8s/apps/scrypted/templates/nodeport.yaml b/k8s/apps/scrypted/templates/nodeport.yaml index d33d112..7081d90 100644 --- a/k8s/apps/scrypted/templates/nodeport.yaml +++ b/k8s/apps/scrypted/templates/nodeport.yaml @@ -1,30 +1,20 @@ -# --- -# kind: Service -# apiVersion: v1 -# metadata: -# name: {{ .Release.Name }}-nodeport -# spec: -# selector: -# {{ .Release.Name }}/app: scrypted -# type: NodePort -# ports: -# - port: 5000 -# nodePort: 30000 -# targetPort: 5000 -# name: http -# protocol: TCP -# - port: 8554 -# nodePort: 30554 -# targetPort: 8554 -# name: rtsp -# protocol: TCP -# - port: 8555 -# nodePort: 30555 -# targetPort: 8555 -# name: webrtc-tcp -# protocol: TCP -# - port: 8555 -# nodePort: 30555 -# targetPort: 8555 -# name: webrtc-udp -# protocol: UDP \ No newline at end of file +{{ if .Values.flags.enableNodePort }} +--- +kind: Service +apiVersion: v1 +metadata: + name: {{ .Release.Name }}-nodeport +spec: + selector: + {{ .Release.Name }}/app: scrypted + type: NodePort + ports: + - port: 443 + targetPort: 10443 + name: https + protocol: TCP + - port: 80 + targetPort: 11080 + name: http + protocol: TCP +{{ end }} \ No newline at end of file diff --git a/k8s/apps/scrypted/templates/service.yaml b/k8s/apps/scrypted/templates/service.yaml index 9584bf7..4d5752e 100644 --- a/k8s/apps/scrypted/templates/service.yaml +++ b/k8s/apps/scrypted/templates/service.yaml @@ -8,7 +8,11 @@ spec: {{ .Release.Name }}/app: scrypted type: ClusterIP ports: - - port: 80 + - port: 443 targetPort: 10443 + name: https + protocol: TCP + - port: 80 + targetPort: 11080 name: http protocol: TCP \ No newline at end of file diff --git a/k8s/apps/scrypted/values.yaml b/k8s/apps/scrypted/values.yaml index d1bf22d..b2fbb6a 100644 --- a/k8s/apps/scrypted/values.yaml +++ b/k8s/apps/scrypted/values.yaml @@ -1,6 +1,9 @@ image: "koush/scrypted" tag: "20-jammy-thin.s6-v0.57.0" +flags: + enableNodePort: false + persistence: media_path: enabled: false