summaryrefslogtreecommitdiff
path: root/roles/elevate/media/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/elevate/media/templates')
-rw-r--r--roles/elevate/media/templates/nextcloud-pod-spec-with-mariadb.yml.j217
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/elevate/media/templates/nextcloud-pod-spec-with-mariadb.yml.j2 b/roles/elevate/media/templates/nextcloud-pod-spec-with-mariadb.yml.j2
index 026ff7a7..05c1a320 100644
--- a/roles/elevate/media/templates/nextcloud-pod-spec-with-mariadb.yml.j2
+++ b/roles/elevate/media/templates/nextcloud-pod-spec-with-mariadb.yml.j2
@@ -35,6 +35,19 @@ containers:
- containerPort: 8080
hostPort: {{ elevate_media_nextcloud_instance.port }}
hostIP: 127.0.0.1
+- name: redis
+ image: "redis:{{ elevate_media_nextcloud_instance.redis.version }}"
+ args:
+ - --bind 127.0.0.1
+ securityContext:
+ runAsUser: {{ elevate_media_nextcloud_redis_uid }}
+ runAsGroup: {{ elevate_media_nextcloud_redis_gid }}
+ resources:
+ limits:
+ memory: "512Mi"
+ volumeMounts:
+ - name: redis
+ mountPath: /data
- name: database
image: "mariadb:{{ elevate_media_nextcloud_instance.database.version }}"
args:
@@ -68,6 +81,10 @@ volumes:
hostPath:
path: "{{ elevate_media_nextcloud_base_path }}/{{ elevate_media_nextcloud_instance_name }}/nextcloud"
type: Directory
+- name: redis
+ hostPath:
+ path: "{{ elevate_media_nextcloud_base_path }}/{{ elevate_media_nextcloud_instance_name }}/redis"
+ type: Directory
- name: database
hostPath:
path: "{{ elevate_media_nextcloud_base_path }}/{{ elevate_media_nextcloud_instance_name }}/{{ elevate_media_nextcloud_instance.database.type }}"