infra/k8s/adsb/ultrafeeder.yaml
2024-05-18 21:44:05 -07:00

85 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ultrafeeder
namespace: adsb
spec:
selector:
matchLabels:
app: ultrafeeder
serviceName: ultrafeeder
replicas: 1
template:
metadata:
labels:
app: ultrafeeder
spec:
tolerations:
- key: "rtlsdr"
value: "true"
effect: "NoSchedule"
containers:
- image: ghcr.io/sdr-enthusiasts/docker-adsb-ultrafeeder
name: ultrafeeder
# args: ["start-dev"]
resources:
limits:
janky.solutions/rtlsdr: "1"
volumeMounts:
- name: ultrafeeder-collectd
mountPath: /var/lib/collectd
- name: ultrafeeder-globe-history
mountPath: /var/globe_history
envFrom:
- configMapRef:
name: ultrafeeder
ports:
- name: web
containerPort: 80
volumeClaimTemplates:
- metadata:
name: ultrafeeder-collectd
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
- metadata:
name: ultrafeeder-globe-history
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: ultrafeeder
namespace: adsb
spec:
type: NodePort
ports:
- name: web
port: 80
selector:
app: ultrafeeder
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ultrafeeder
namespace: adsb
spec:
rules:
- host: adsb.k8s.home.finn.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ultrafeeder
port:
name: web