Skip to content

Commit 9bd7ea8

Browse files
committed
Revert "fix(unifi-controller): set pvc for mongodb instead"
This reverts commit 686659b.
1 parent 686659b commit 9bd7ea8

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

kubernetes/apps/unifi-controller/flux-kustomization.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
postBuild:
1515
substitute:
1616
APP: *app
17-
CLAIM: config-unifi-controller-mongodb-0
17+
CLAIM: config-unifi-controller-0
1818
VOLSYNC_CAPACITY: "2Gi"
1919
prune: true
2020
sourceRef:

kubernetes/apps/unifi-controller/helm-release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ spec:
2929
controllers:
3030
unifi-controller:
3131
enabled: true
32-
type: deployment
32+
type: statefulset
3333
annotations:
3434
reloader.stakater.com/auto: "true"
3535
replicas: 1
36+
statefulset:
37+
volumeClaimTemplates:
38+
- name: config
39+
accessMode: ReadWriteOnce
40+
size: 2Gi
41+
storageClass: ceph-block
42+
globalMounts:
43+
- path: /usr/lib/unifi/data
3644
pod:
3745
securityContext:
3846
runAsUser: &context 999
@@ -65,13 +73,6 @@ spec:
6573
type: statefulset
6674
statefulset:
6775
podManagementPolicy: OrderedReady
68-
volumeClaimTemplates:
69-
- name: config
70-
accessMode: ReadWriteOnce
71-
size: 2Gi
72-
storageClass: ceph-block
73-
globalMounts:
74-
- path: /data/db
7576
containers:
7677
app:
7778
image:

0 commit comments

Comments
 (0)