82 lines
1.7 KiB
YAML
82 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: ultrafeeder
|
|
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
|
|
spec:
|
|
type: NodePort
|
|
ports:
|
|
- name: web
|
|
port: 80
|
|
selector:
|
|
app: ultrafeeder
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ultrafeeder
|
|
spec:
|
|
rules:
|
|
- host: adsb.k8s.home.finn.io
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: ultrafeeder
|
|
port:
|
|
name: web
|
|
|