monorepo lab stuff, init zen

This commit is contained in:
iofq 2025-12-27 22:26:02 -06:00
parent cfc15bba89
commit 645e09f9dd
54 changed files with 67498 additions and 406 deletions

View file

@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: adguard
resources:
- unifi-deployment.yaml

View file

@ -0,0 +1,75 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: unifi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: unifi-pvc
namespace: unifi
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: Service
metadata:
name: unifi-svc
namespace: unifi
spec:
selector:
app: unifi
ports:
- protocol: TCP
port: 8443
targetPort: 8443
name: http
- protocol: UDP
port: 10001
targetPort: 10001
name: ap-disc
- protocol: TCP
port: 8080
targetPort: 8080
name: adopt
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: unifi
namespace: unifi
spec:
selector:
matchLabels:
app: unifi
replicas: 1
template:
metadata:
labels:
app: unifi
spec:
containers:
- name: unifi
image: lscr.io/linuxserver/unifi-controller:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
name: adopt
- containerPort: 10001
name: ap-disc
- containerPort: 8443
name: http
volumeMounts:
- name: unifi-data
mountPath: /config
volumes:
- name: unifi-data
persistentVolumeClaim:
claimName: unifi-pvc