add external device

This commit is contained in:
2026-01-22 23:34:56 +01:00
parent 7e49e193fb
commit b6c6366c59
10 changed files with 1120 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{{- range $name, $device := .Values.externalDevices }}
{{- if $device.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ $name }}-backend
namespace: {{ $device.namespace | default $.Values.global.namespace }}
labels:
app: external-device
device: {{ $name }}
spec:
type: ExternalName
externalName: {{ $device.ip }}
ports:
- port: {{ $device.port }}
targetPort: {{ $device.port }}
protocol: TCP
{{- end }}
{{- end }}