Add ipp-usb to the mix
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
6987228dc6
commit
37460078eb
|
@ -0,0 +1,9 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: ipp-usb
|
||||
data:
|
||||
ipp-usb.conf: |
|
||||
[network]
|
||||
dns-sd = disable
|
||||
interface = all
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: ipp-usb
|
||||
|
||||
resources:
|
||||
- deploy.yaml
|
||||
- configmap.yaml
|
||||
- service.yaml
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue