summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-10-13 21:19:09 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-10-13 21:19:09 +0200
commit99a57f3dd3f788fd1d45e1858b2769cf47aab9c8 (patch)
tree0e425103618e22a7bae0fcc89795cae45b6aea55 /roles/apps/nextcloud/templates
parentele-media: add redis as filelocking memcache for nextcloud (diff)
sk-(cloudio|tomnex-nc): upggade kubelet to 1.28.2 and add redis for nextcloud
Diffstat (limited to 'roles/apps/nextcloud/templates')
-rw-r--r--roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j217
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2 b/roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2
index 725f84d9..983f363a 100644
--- a/roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2
+++ b/roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2
@@ -40,6 +40,19 @@ containers:
- containerPort: 8080
hostPort: {{ item.value.port }}
hostIP: 127.0.0.1
+- name: redis
+ image: "redis:{{ item.value.redis.version }}"
+ args:
+ - --bind 127.0.0.1
+ securityContext:
+ runAsUser: {{ nextcloud_redis_uid }}
+ runAsGroup: {{ nextcloud_redis_gid }}
+ resources:
+ limits:
+ memory: "512Mi"
+ volumeMounts:
+ - name: redis
+ mountPath: /data
- name: database
image: "mariadb:{{ item.value.database.version }}"
args:
@@ -75,6 +88,10 @@ volumes:
hostPath:
path: "{{ nextcloud_base_path }}/{{ item.key }}/nextcloud"
type: Directory
+- name: redis
+ hostPath:
+ path: "{{ nextcloud_base_path }}/{{ item.key }}/redis"
+ type: Directory
- name: database
hostPath:
path: "{{ nextcloud_base_path }}/{{ item.key }}/{{ item.value.database.type }}"