From 99a57f3dd3f788fd1d45e1858b2769cf47aab9c8 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 13 Oct 2023 21:19:09 +0200 Subject: sk-(cloudio|tomnex-nc): upggade kubelet to 1.28.2 and add redis for nextcloud --- .../nextcloud/templates/pod-spec-with-mariadb.yml.j2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'roles/apps/nextcloud/templates') 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 }}" -- cgit v1.2.3