Add ipp-usb to the mix

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2024-03-08 17:47:59 +00:00
parent 6987228dc6
commit 37460078eb
5 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: ipp-usb
data:
ipp-usb.conf: |
[network]
dns-sd = disable
interface = all

View File

@ -0,0 +1,47 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: ipp-usb
labels:
app.kubernetes.io/name: ipp-usb
annotations:
configmap.reloader.stakater.com/reload: "ipp-usb"
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: ipp-usb
template:
metadata:
labels:
app.kubernetes.io/name: ipp-usb
annotations:
descheduler.alpha.kubernetes.io/evict: "true"
spec:
containers:
- name: ipp-usb
image: imartyn/ipp-usb:latest
resources: {}
securityContext:
allowPrivilegeEscalation: true
privileged: true
ports:
- containerPort: 60000
protocol: TCP
volumeMounts:
- mountPath: /app/ipp-usb.conf
subPath: ipp-usb.conf
name: configmap
volumes:
- configMap:
name: ipp-usb
name: configmap
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: feature.node.kubernetes.io/usb-ff_04a9_1913.present
operator: Exists

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ipp-usb
resources:
- deploy.yaml
- configmap.yaml
- service.yaml

View File

@ -0,0 +1,14 @@
kind: Service
apiVersion: v1
metadata:
name: ipp-usb
labels:
app.kubernetes.io/name: ipp-usb
spec:
selector:
app.kubernetes.io/name: ipp-usb
ports:
- name: http
protocol: TCP
port: 60000
targetPort: 60000

View File

@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ipp-usb
namespace: argocd
spec:
destination:
namespace: ipp-usb
server: https://kubernetes.default.svc
project: infra
source:
path: apps-kustomized/ipp-usb
repoURL: https://git.martyn.berlin/martyn/infra4talos
targetRevision: HEAD
syncPolicy:
automated:
selfHeal: true