set ports
This commit is contained in:
1 parent
454d7ca653
commit
fd90844b9e
3 files changed
+28
-31
No files matched your search
@@ -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
|
||||
{{ 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 }}
|
||||
@@ -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
|
||||
@@ -1,6 +1,9 @@
|
||||
image: "koush/scrypted"
|
||||
tag: "20-jammy-thin.s6-v0.57.0"
|
||||
|
||||
flags:
|
||||
enableNodePort: false
|
||||
|
||||
persistence:
|
||||
media_path:
|
||||
enabled: false
|
||||
|
||||
Reference in new issue
Block a user