generated from willianpaixao/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(helm): install unifi-controller
- Loading branch information
1 parent
6dc7a20
commit a1162ef
Showing
4 changed files
with
153 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ resources: | |
- ./ingress-nginx/ks.yaml | ||
- ./k8s-gateway/ks.yaml | ||
- ./namespace.yaml | ||
- ./unifi-controller/ks.yaml |
126 changes: 126 additions & 0 deletions
126
kubernetes/raspberry/network/unifi-controller/app/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: &app unifi-controller | ||
namespace: network | ||
spec: | ||
interval: 1h | ||
timeout: 15m | ||
chart: | ||
spec: | ||
chart: app-template | ||
version: 3.5.1 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: bjw-s | ||
namespace: flux-system | ||
maxHistory: 3 | ||
install: | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
remediation: | ||
strategy: rollback | ||
retries: 3 | ||
uninstall: | ||
keepHistory: false | ||
values: | ||
controllers: | ||
unifi: | ||
annotations: | ||
reloader.stakater.com/auto: "true" | ||
pod: | ||
nodeSelector: | ||
disktype: ssd | ||
containers: | ||
app: | ||
image: | ||
repository: jacobalberty/unifi | ||
tag: v8.5.6@sha256:fb92425531a7dc40194668315082bb79c217417de6074127793a7e84c1d60fe8 | ||
pullPolicy: IfNotPresent | ||
env: | ||
DEBUG: "true" | ||
JVM_MAX_HEAP_SIZE: 1024M | ||
RUNAS_UID0: "false" | ||
TZ: ${TIMEZONE} | ||
UNIFI_GID: "999" | ||
UNIFI_STDOUT: "true" | ||
UNIFI_UID: "999" | ||
resources: | ||
requests: | ||
memory: 2Gi | ||
cpu: 50m | ||
service: | ||
app: | ||
controller: unifi | ||
type: LoadBalancer | ||
externalTrafficPolicy: Cluster | ||
loadBalancerIP: "192.168.0.34" | ||
annotations: | ||
io.cilium/lb-ipam-ips: "192.168.0.34" | ||
io.cilium/lb-ipam-sharing-key: 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: | ||
app: | ||
enabled: true | ||
className: internal | ||
annotations: | ||
gethomepage.dev/enabled: "true" | ||
gethomepage.dev/name: Unifi | ||
gethomepage.dev/group: Network | ||
gethomepage.dev/icon: unifi.png | ||
nginx.ingress.kubernetes.io/backend-protocol: HTTPS | ||
hosts: | ||
- host: &host unifi.${SECRET_DOMAIN} | ||
paths: | ||
- path: / | ||
service: | ||
identifier: app | ||
port: http | ||
tls: | ||
- hosts: | ||
- *host | ||
persistence: | ||
data: | ||
enabled: true | ||
type: persistentVolumeClaim | ||
accessMode: ReadWriteOnce | ||
size: 4Gi | ||
advancedMounts: | ||
unifi: | ||
app: | ||
- path: /unifi/data |
5 changes: 5 additions & 0 deletions
5
kubernetes/raspberry/network/unifi-controller/app/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- helmrelease.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: &app unifi-controller | ||
namespace: flux-system | ||
spec: | ||
targetNamespace: network | ||
commonMetadata: | ||
labels: | ||
app.kubernetes.io/name: *app | ||
path: ./kubernetes/raspberry/network/unifi-controller/app | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: flux-system | ||
wait: true | ||
interval: 1h | ||
retryInterval: 1m | ||
timeout: 5m |