infra/k8s/adsb/rtltcp.yaml
2024-06-15 12:41:27 -07:00

41 lines
767 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: rtltcp
spec:
selector:
matchLabels:
app: rtltcp
replicas: 1
template:
metadata:
labels:
app: rtltcp
spec:
tolerations:
- key: "rtlsdr"
value: "true"
effect: "NoSchedule"
containers:
- image: git.janky.solutions/jankysolutions/rtltcp:latest
name: rtltcp
args: ["rtl_tcp", "-a", "0.0.0.0", "-d", "1"]
resources:
limits:
janky.solutions/rtlsdr: "1"
ports:
- name: rtltcp
containerPort: 1234
---
apiVersion: v1
kind: Service
metadata:
name: rtltcp
spec:
type: NodePort
ports:
- name: rtltcp
port: 1234
nodePort: 30002
selector:
app: rtltcp