ScanservJs, neat.

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2024-03-08 18:38:05 +00:00
parent 44ce830d3b
commit 6d8fe86c1a
4 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,5 @@
[devices]
"Canon LiDE 300" = http://ipp-usb.ipp-usb.svc.cluster.local:60000/eSCL/, eSCL
[options]
discovery = disable

View File

@ -0,0 +1,12 @@
apiVersion: v1
data:
airscan.conf: |
[devices]
"Canon LiDE 300" = http://ipp-usb.ipp-usb.svc.cluster.local:60000/eSCL/, eSCL
[options]
discovery = disable
kind: ConfigMap
metadata:
creationTimestamp: null
name: airscan-conf

View File

@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: scanservjs
name: scanservjs
spec:
replicas: 1
selector:
matchLabels:
app: scanservjs
template:
metadata:
creationTimestamp: null
labels:
app: scanservjs
spec:
containers:
- image: sbs20/scanservjs:latest
name: scanservjs
volumeMounts:
- mountPath: /etc/sane.d/airscan.conf
subPath: airscan.conf
name: configmap
volumes:
- configMap:
name: airscan-conf
name: configmap

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
annotations:
external-dns.alpha.kubernetes.io/hostname: scanner.martyn.berlin
labels:
app: scanservjs
name: scanservjs
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: scanservjs
type: LoadBalancer