⬆️ unifi app-template v2

This commit is contained in:
auricom
2023-11-04 15:49:07 +01:00
parent 532c18f025
commit 47963c8304
4 changed files with 36 additions and 41 deletions

View File

@@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: app-template chart: app-template
version: 1.5.1 version: 2.0.3
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: bjw-s name: bjw-s
@@ -27,17 +27,36 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
image: controllers:
repository: jacobalberty/unifi main:
tag: v7.5.176 type: statefulset
pullPolicy: IfNotPresent annotations:
env: reloader.stakater.com/auto: "true"
RUNAS_UID0: "false" containers:
UNIFI_UID: "999" main:
UNIFI_GID: "999" image:
UNIFI_STDOUT: "true" repository: jacobalberty/unifi
JVM_INIT_HEAP_SIZE: tag: v7.5.176
JVM_MAX_HEAP_SIZE: 1024M pullPolicy: IfNotPresent
env:
RUNAS_UID0: "false"
UNIFI_UID: "999"
UNIFI_GID: "999"
UNIFI_STDOUT: "true"
JVM_INIT_HEAP_SIZE:
JVM_MAX_HEAP_SIZE: 1024M
resources:
requests:
memory: 2Gi
cpu: 50m
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 10Gi
storageClass: rook-ceph-block
globalMounts:
- path: /unifi
service: service:
main: main:
type: LoadBalancer type: LoadBalancer
@@ -78,7 +97,7 @@ spec:
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: "nginx" className: "nginx"
annotations: annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
hajimari.io/icon: mdi:lan hajimari.io/icon: mdi:lan
@@ -86,15 +105,9 @@ spec:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
service:
name: main
port: http
tls: tls:
- hosts: - hosts:
- *host - *host
persistence:
config:
enabled: true
existingClaim: unifi-config
mountPath: /unifi
resources:
requests:
memory: 2Gi
cpu: 50m

View File

@@ -7,4 +7,3 @@ resources:
- ./gatus.yaml - ./gatus.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
- ./volsync.yaml - ./volsync.yaml
- ./volume.yaml

View File

@@ -30,7 +30,7 @@ metadata:
name: unifi name: unifi
namespace: default namespace: default
spec: spec:
sourcePVC: unifi-config sourcePVC: config-unifi-0
trigger: trigger:
schedule: "0 7 * * *" schedule: "0 7 * * *"
restic: restic:

View File

@@ -1,17 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: unifi-config
namespace: default
labels:
app.kubernetes.io/name: &name unifi
app.kubernetes.io/instance: *name
snapshot.home.arpa/enabled: "true"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 10Gi