Skip to content

Commit

Permalink
[networking] moved and fixed unifi-controller-related resources
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Feb 3, 2024
1 parent ce9720b commit f6c2a84
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 42 deletions.
15 changes: 8 additions & 7 deletions apps/argocd/base/networking/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ./external-dns
- cert-manager.yaml
- nginx-ingress.yaml
- tailscale-operator.yaml
- tailscale.yaml
- issuer.yaml
- kube-vip.yaml
- ./external-dns
- cert-manager.yaml
- nginx-ingress.yaml
- tailscale-operator.yaml
- tailscale.yaml
- issuer.yaml
- kube-vip.yaml
- unifi-controller.yaml

namespace: argocd

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,24 @@ kind: Application
metadata:
name: unifi-controller
spec:
project: apps
project: networking
source:
repoURL: 'https://github.com/gruberdev/homelab.git'
repoURL: "https://github.com/gruberdev/homelab.git"
path: apps/networking/unifi/controller
targetRevision: main
kustomize:
commonLabels:
app.kubernetes.io/category: networking
destination:
namespace: unifi
name: in-cluster
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: true
syncOptions:
- Validate=false
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
- ApplyOutOfSyncOnly=false
- Replace=true
- Prune=true
- Prune=true
- ServerSideApply=true
retry:
limit: 10
backoff:
Expand Down
40 changes: 21 additions & 19 deletions apps/argocd/base/projects/networking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,28 @@ metadata:
spec:
description: Networking related Kubernetes resources
sourceRepos:
- '*'
- "*"
destinations:
- namespace: kube-system
server: https://kubernetes.default.svc
- namespace: argocd
server: https://kubernetes.default.svc
- namespace: cert-manager
server: https://kubernetes.default.svc
- namespace: istio-system
server: https://kubernetes.default.svc
- namespace: networking
server: https://kubernetes.default.svc
- namespace: external-dns
server: https://kubernetes.default.svc
- namespace: tailscale
server: https://kubernetes.default.svc
- namespace: monitoring
server: https://kubernetes.default.svc
- namespace: kube-system
server: https://kubernetes.default.svc
- namespace: argocd
server: https://kubernetes.default.svc
- namespace: cert-manager
server: https://kubernetes.default.svc
- namespace: istio-system
server: https://kubernetes.default.svc
- namespace: networking
server: https://kubernetes.default.svc
- namespace: external-dns
server: https://kubernetes.default.svc
- namespace: tailscale
server: https://kubernetes.default.svc
- namespace: monitoring
server: https://kubernetes.default.svc
- namespace: unifi
server: https://kubernetes.default.svc
clusterResourceWhitelist:
- group: '*'
kind: '*'
- group: "*"
kind: "*"
orphanedResources:
warn: true
1 change: 0 additions & 1 deletion apps/argocd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ resources:

# Applications
- base/apps/vault.yaml
- base/apps/unifi.yaml

# Monitoring
- base/monitoring/kuma.yaml
Expand Down
9 changes: 4 additions & 5 deletions apps/networking/unifi/controller/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ spec:
image: jacobalberty/unifi:v7.4.162
securityContext:
runAsUser: 0
fsGroupChangePolicy: Always
allowPrivilegeEscalation: true
envFrom:
- configMapRef:
Expand Down Expand Up @@ -80,11 +79,11 @@ spec:
name: config
resources:
limits:
cpu: 500m
memory: 1.3Gi
cpu: 450m
memory: 1500Mi
requests:
cpu: 100m
memory: 900Mi
cpu: 200m
memory: 1024Mi
livenessProbe:
tcpSocket:
port: 8443
Expand Down

0 comments on commit f6c2a84

Please sign in to comment.