Skip to content

Commit 500a112

Browse files
author
Your Name
committed
keycloak limits
1 parent 10a3b08 commit 500a112

File tree

4 files changed

+69
-13
lines changed

4 files changed

+69
-13
lines changed

charts/opencloud-microservices/deployments/helm/helmfile.yaml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,17 @@ releases:
3232
config:
3333
persistence:
3434
size: "40Gi"
35+
accessModes:
36+
- ReadWriteOnce
37+
storageClassName:
3538
- onlyoffice:
3639
enabled: false
3740
domain: onlyoffice.opencloud.test # Domain for OnlyOffice.
3841
persistence:
39-
size: "2Gi" # Added
42+
size: "2Gi"
43+
accessModes:
44+
- ReadWriteOnce
45+
storageClassName:
4046

4147
- collabora:
4248
enabled: true
@@ -118,31 +124,49 @@ releases:
118124
persistence:
119125
enabled: true
120126
size: "10Gi"
127+
accessModes:
128+
- ReadWriteOnce
129+
storageClassName:
121130
search:
122131
persistence:
123132
enabled: true
124133
size: "10Gi"
134+
accessModes:
135+
- ReadWriteOnce
136+
storageClassName:
125137
extractor:
126138
type: tika
127139
storagesystem:
128140
persistence:
129141
enabled: true
130142
size: "5Gi"
143+
accessModes:
144+
- ReadWriteOnce
145+
storageClassName:
131146
storageusers:
132147
persistence:
133148
enabled: true
134-
size: "50Gi"
149+
size: "60Gi"
150+
accessModes:
151+
- ReadWriteOnce
152+
storageClassName:
135153
storageBackend:
136154
driver: decomposeds3
137155

138156
thumbnails:
139157
persistence:
140158
enabled: true
141159
size: "10Gi"
160+
accessModes:
161+
- ReadWriteOnce
162+
storageClassName:
142163
web:
143164
persistence:
144165
enabled: true
145166
size: "1Gi"
167+
accessModes:
168+
- ReadWriteOnce
169+
storageClassName:
146170
config:
147171
oidc:
148172
webClientID: web
@@ -215,10 +239,16 @@ releases:
215239
persistence:
216240
enabled: false
217241
size: "10Gi"
242+
accessModes:
243+
- ReadWriteOnce
244+
storageClassName:
218245
ocm:
219246
persistence:
220247
enabled: false
221248
size: "1Gi"
249+
accessModes:
250+
- ReadWriteOnce
251+
storageClassName:
222252
- extraResources:
223253
- |
224254
apiVersion: v1

charts/opencloud-microservices/deployments/timoni/configmap.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,27 @@ data:
2626
GATEWAY_HTTPROUTE_ENABLED: "true"
2727
APPS_INTEGRATION_ENABLED: "true"
2828
WEB_OIDC_WEB_CLIENT_ID: "web"
29+
30+
###############################################################################
31+
# Persistence StorageClass and AccessModes (global defaults)
32+
###############################################################################
33+
PERSISTENCE_STORAGE_CLASS_NAME: "ceph-cephfs"
34+
# Comma-separated for runtime to split into a list, e.g. "ReadWriteMany" or "ReadWriteOnce,ReadOnlyMany"
35+
PERSISTENCE_ACCESS_MODES: "ReadWriteMany"
36+
37+
###############################################################################
38+
# Persistence (service PVC sizes and toggles)
39+
###############################################################################
2940
IDM_PERSISTENCE_ENABLED: "false"
3041
IDM_PERSISTENCE_SIZE: "10Gi"
3142
NATS_PERSISTENCE_ENABLED: "true"
3243
NATS_PERSISTENCE_SIZE: "10Gi"
3344
OCM_PERSISTENCE_ENABLED: "false"
3445
OCM_PERSISTENCE_SIZE: "1Gi"
3546
ONLYOFFICE_PERSISTENCE_SIZE: "2Gi"
36-
SEARCH_EXTRACTOR_TYPE: "tika"
3747
SEARCH_PERSISTENCE_ENABLED: "true"
3848
SEARCH_PERSISTENCE_SIZE: "10Gi"
39-
STORAGE_USERS_BACKEND_DRIVER: "decomposeds3"
49+
STORAGE_USERS_BACKEND_DRIVER: "posix"
4050
STORAGE_SYSTEM_PERSISTENCE_ENABLED: "true"
4151
STORAGE_SYSTEM_PERSISTENCE_SIZE: "5Gi"
4252
STORAGE_USERS_PERSISTENCE_ENABLED: "true"
@@ -46,8 +56,9 @@ data:
4656
WEB_PERSISTENCE_ENABLED: "true"
4757
WEB_PERSISTENCE_SIZE: "1Gi"
4858

49-
OIDC_IDP_INSECURE: "true"
50-
OC_HTTP_API_INSECURE: "true"
59+
# NATS specific persistence options
60+
# When true, a root init container will chown the NATS data volume before the main container starts.
61+
NATS_PERSISTENCE_CHOWN_INIT_CONTAINER: "false"
5162

5263
###############################################################################
5364
# Internal Keycloak (for testing only)
@@ -89,6 +100,11 @@ data:
89100
OIDC_USER_ID_CLAIM_ATTRIBUTE_MAPPING: "username"
90101
OIDC_ROLE_ASSIGNMENT_CLAIM: "roles"
91102

103+
###############################################################################
104+
# Search Configuration
105+
###############################################################################
106+
SEARCH_EXTRACTOR_TYPE: "tika"
107+
92108
###############################################################################
93109
# Collabora Configuration
94110
###############################################################################

charts/opencloud-microservices/deployments/timoni/opencloud.cue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ bundle: {
2121
namespace: "opencloud"
2222
values: {
2323
repository: {
24-
url: "oci://ghcr.io/opencloud-eu/helm-charts"
24+
url: "oci://ghcr.io/suse-coder/helm-charts"
2525
}
2626
chart: {
2727
name: "opencloud-microservices"
28-
version: "0.1.0"
28+
version: "0.2.0"
2929
}
3030
sync: {
3131
timeout: 10

charts/opencloud-microservices/templates/keycloak/deployment.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,33 @@ spec:
8080
subPath: opencloud-realm.json
8181
resources:
8282
limits:
83-
cpu: 1000m
84-
memory: 1Gi
83+
cpu: 3000m
84+
memory: 5Gi
8585
requests:
8686
cpu: 500m
8787
memory: 512Mi
88+
startupProbe:
89+
httpGet:
90+
path: /health/ready
91+
port: http
92+
periodSeconds: 10
93+
failureThreshold: 30
8894
readinessProbe:
8995
httpGet:
90-
path: /realms/master
96+
path: /health/ready
9197
port: http
9298
initialDelaySeconds: 30
99+
periodSeconds: 10
93100
timeoutSeconds: 5
101+
failureThreshold: 12
94102
livenessProbe:
95103
httpGet:
96-
path: /realms/master
104+
path: /health/live
97105
port: http
98-
initialDelaySeconds: 60
106+
initialDelaySeconds: 90
107+
periodSeconds: 10
99108
timeoutSeconds: 5
109+
failureThreshold: 6
100110
volumes:
101111
- name: script
102112
configMap:

0 commit comments

Comments
 (0)