add unifi and gittea
This commit is contained in:
65
apps/unifi/unifi-deployment.yaml
Normal file
65
apps/unifi/unifi-deployment.yaml
Normal file
@@ -0,0 +1,65 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: unifi
|
||||
name: unifi-deployment
|
||||
namespace: default
|
||||
spec:
|
||||
progressDeadlineSeconds: 600
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 10
|
||||
selector:
|
||||
matchLabels:
|
||||
app: unifi
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: unifi
|
||||
spec:
|
||||
containers:
|
||||
- image: lscr.io/linuxserver/unifi-controller:latest
|
||||
imagePullPolicy: Always
|
||||
name: unifi
|
||||
env:
|
||||
- name: TZ
|
||||
value: Etcd/New_York
|
||||
ports:
|
||||
- containerPort: 8443
|
||||
protocol: TCP
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
- containerPort: 8843
|
||||
protocol: TCP
|
||||
- containerPort: 8880
|
||||
protocol: TCP
|
||||
- containerPort: 6789
|
||||
protocol: TCP
|
||||
- containerPort: 3478
|
||||
protocol: UDP
|
||||
- containerPort: 10001
|
||||
protocol: UDP
|
||||
- containerPort: 1900
|
||||
protocol: UDP
|
||||
- containerPort: 5514
|
||||
protocol: UDP
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: unifi-config
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: unifi-config
|
||||
persistentVolumeClaim:
|
||||
claimName: unifi-config
|
||||
38
apps/unifi/unifi-service.yaml
Normal file
38
apps/unifi/unifi-service.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: unifi-service
|
||||
spec:
|
||||
ports:
|
||||
- port: 8443
|
||||
targetPort: 8443
|
||||
name: web-admin
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
name: http
|
||||
- port: 8843
|
||||
targetPort: 8843
|
||||
name: https-guest
|
||||
- port: 8880
|
||||
targetPort: 8880
|
||||
name: http-guest
|
||||
- port: 6789
|
||||
targetPort: 6789
|
||||
name: mobile-test
|
||||
- port: 3478
|
||||
targetPort: 3478
|
||||
name: stun-port
|
||||
- port: 10001
|
||||
targetPort: 10001
|
||||
name: ap-discovery
|
||||
- port: 1900
|
||||
targetPort: 1900
|
||||
name: l2-discovery
|
||||
- port: 5514
|
||||
targetPort: 5514
|
||||
name: syslog
|
||||
selector:
|
||||
app: unifi
|
||||
sessionAffinity: None
|
||||
type: LoadBalancer
|
||||
12
apps/unifi/unifi-storage.yaml
Normal file
12
apps/unifi/unifi-storage.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: unifi-config
|
||||
namespace: default
|
||||
spec:
|
||||
storageClassName: synology-iscsi-storage-custom
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
Reference in New Issue
Block a user