2020-11-21 14:59:09 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: unifi
|
2020-11-23 12:19:31 +00:00
|
|
|
namespace: unifi
|
2020-11-21 14:59:09 +00:00
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
name: web
|
|
|
|
port: 8443
|
|
|
|
selector:
|
|
|
|
app: unifi
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: unifi-tcp
|
2020-11-23 12:19:31 +00:00
|
|
|
namespace: unifi
|
2020-11-21 14:59:09 +00:00
|
|
|
spec:
|
|
|
|
type: LoadBalancer
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
name: comm
|
|
|
|
port: 8080
|
|
|
|
- protocol: TCP
|
|
|
|
name: bandwidth
|
|
|
|
port: 6789
|
|
|
|
- protocol: TCP
|
|
|
|
name: syslog
|
|
|
|
port: 5514
|
|
|
|
selector:
|
|
|
|
app: unifi
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: unifi-udp
|
2020-11-23 12:19:31 +00:00
|
|
|
namespace: unifi
|
2020-11-21 14:59:09 +00:00
|
|
|
spec:
|
|
|
|
type: LoadBalancer
|
|
|
|
ports:
|
|
|
|
- protocol: UDP
|
|
|
|
name: stun
|
2020-12-08 22:03:57 +00:00
|
|
|
port: 3479
|
2020-11-21 14:59:09 +00:00
|
|
|
- protocol: UDP
|
|
|
|
name: discovery
|
|
|
|
port: 10001
|
|
|
|
selector:
|
|
|
|
app: unifi
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: unifi
|
2020-11-23 12:19:31 +00:00
|
|
|
namespace: unifi
|
2020-11-21 14:59:09 +00:00
|
|
|
labels:
|
|
|
|
app: unifi
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: unifi
|
2020-12-08 22:03:57 +00:00
|
|
|
strategy:
|
|
|
|
type: Recreate
|
2020-11-21 14:59:09 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: unifi
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: unifi
|
2020-12-04 08:41:15 +00:00
|
|
|
image: bv11-cr01.bessems.eu/proxy/linuxserver/unifi-controller
|
2020-11-21 14:59:09 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 8443
|
|
|
|
- name: comm
|
|
|
|
containerPort: 8080
|
|
|
|
- name: bandwidth
|
|
|
|
containerPort: 6789
|
|
|
|
- name: syslog
|
|
|
|
containerPort: 5514
|
|
|
|
- name: stun
|
2020-12-08 22:03:57 +00:00
|
|
|
containerPort: 3479
|
2020-11-21 14:59:09 +00:00
|
|
|
protocol: UDP
|
|
|
|
- name: discovery
|
|
|
|
containerPort: 10001
|
|
|
|
protocol: UDP
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /config
|
|
|
|
name: longhorn-unifi-config
|
|
|
|
volumes:
|
|
|
|
- name: longhorn-unifi-config
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: longhorn-unifi-config
|
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: unifi
|
|
|
|
spec:
|
|
|
|
entryPoints:
|
|
|
|
- websecure
|
|
|
|
routes:
|
|
|
|
- match: Host(`wifi.spamasaurus.com`)
|
|
|
|
kind: Rule
|
|
|
|
services:
|
|
|
|
- name: unifi
|
2020-11-23 12:19:31 +00:00
|
|
|
namespace: unifi
|
2020-11-21 14:59:09 +00:00
|
|
|
port: 8443
|
|
|
|
scheme: https
|
|
|
|
# middlewares:
|
|
|
|
# - name: security-headers@file
|
|
|
|
# - name: compression@file
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: longhorn-unifi-config
|
2020-11-23 12:19:31 +00:00
|
|
|
namespace: unifi
|
2020-11-21 14:59:09 +00:00
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
storageClassName: longhorn
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 1Gi
|