added exposed ports
This commit is contained in:
1 parent
309391b006
commit
11de297cdf
2 files changed
+20
No files matched your search
@@ -23,6 +23,24 @@ spec:
|
||||
protocol: UDP
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
|
||||
{{ if $v.exposedPorts }}
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ $k }}-exposed-ports
|
||||
spec:
|
||||
selector:
|
||||
homelab/app: scrypted
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
{{ $exPort, $inPort := range $v.exposedPorts }}
|
||||
- port: "{{ $exPort }}"
|
||||
targetPort: "{{ $inPort }}"
|
||||
protocol: TCP
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
|
||||
@@ -30,6 +30,8 @@ apps:
|
||||
requests:
|
||||
cpu: 1
|
||||
memory: "4Gi"
|
||||
exposedPorts:
|
||||
"11434": "11434"
|
||||
ports:
|
||||
tcp:
|
||||
web: 11434
|
||||
|
||||
Reference in new issue
Block a user