mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
✨ new talos cluster
This commit is contained in:
94
kubernetes/cluster-0/apps/networking/unifi/helm-release.yaml
Normal file
94
kubernetes/cluster-0/apps/networking/unifi/helm-release.yaml
Normal file
@@ -0,0 +1,94 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: &app unifi
|
||||
namespace: default
|
||||
spec:
|
||||
interval: 15m
|
||||
chart:
|
||||
spec:
|
||||
chart: app-template
|
||||
version: 1.0.1
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: bjw-s
|
||||
namespace: flux-system
|
||||
install:
|
||||
createNamespace: true
|
||||
remediation:
|
||||
retries: 5
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 5
|
||||
values:
|
||||
image:
|
||||
repository: jacobalberty/unifi
|
||||
tag: v7.2.95
|
||||
pullPolicy: IfNotPresent
|
||||
env:
|
||||
RUNAS_UID0: "false"
|
||||
UNIFI_UID: "999"
|
||||
UNIFI_GID: "999"
|
||||
UNIFI_STDOUT: "true"
|
||||
JVM_INIT_HEAP_SIZE:
|
||||
JVM_MAX_HEAP_SIZE: 1024M
|
||||
service:
|
||||
main:
|
||||
type: LoadBalancer
|
||||
externalTrafficPolicy: Local
|
||||
loadBalancerIP: ${CLUSTER_LB_UNIFI}
|
||||
ports:
|
||||
http:
|
||||
port: 8443
|
||||
protocol: HTTPS
|
||||
controller:
|
||||
enabled: true
|
||||
port: 8080
|
||||
protocol: TCP
|
||||
portal-http:
|
||||
enabled: false
|
||||
port: 8880
|
||||
protocol: HTTP
|
||||
portal-https:
|
||||
enabled: false
|
||||
port: 8843
|
||||
protocol: HTTPS
|
||||
speedtest:
|
||||
enabled: true
|
||||
port: 6789
|
||||
protocol: TCP
|
||||
stun:
|
||||
enabled: true
|
||||
port: 3478
|
||||
protocol: UDP
|
||||
syslog:
|
||||
enabled: true
|
||||
port: 5514
|
||||
protocol: UDP
|
||||
discovery:
|
||||
enabled: true
|
||||
port: 10001
|
||||
protocol: UDP
|
||||
ingress:
|
||||
main:
|
||||
enabled: true
|
||||
ingressClassName: "nginx"
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
|
||||
hosts:
|
||||
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
||||
paths:
|
||||
- path: /
|
||||
tls:
|
||||
- hosts:
|
||||
- *host
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
existingClaim: unifi-config
|
||||
mountPath: /unifi
|
||||
resources:
|
||||
requests:
|
||||
memory: 2Gi
|
||||
cpu: 50m
|
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- helm-release.yaml
|
||||
- volume.yaml
|
17
kubernetes/cluster-0/apps/networking/unifi/volume.yaml
Normal file
17
kubernetes/cluster-0/apps/networking/unifi/volume.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
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
|
Reference in New Issue
Block a user