From 96efb578b0a77960580c3e25fbbcb92d4ebea050 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 25 Jan 2024 14:47:16 +0100 Subject: [PATCH] fix(overlay/dev): cleanup --- overlays/dev/patches/nextcloud-cpng.yaml | 9 ++++++++ .../dev/resources/nextcloud/minio-tenant.yaml | 23 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 overlays/dev/patches/nextcloud-cpng.yaml diff --git a/overlays/dev/patches/nextcloud-cpng.yaml b/overlays/dev/patches/nextcloud-cpng.yaml new file mode 100644 index 0000000..86761d3 --- /dev/null +++ b/overlays/dev/patches/nextcloud-cpng.yaml @@ -0,0 +1,9 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: nextcloud-postgres +spec: + instances: 3 + storage: + size: 50Gi + storageClass: directpv-min-io diff --git a/overlays/dev/resources/nextcloud/minio-tenant.yaml b/overlays/dev/resources/nextcloud/minio-tenant.yaml index 36c4aa0..af8e9f4 100644 --- a/overlays/dev/resources/nextcloud/minio-tenant.yaml +++ b/overlays/dev/resources/nextcloud/minio-tenant.yaml @@ -8,6 +8,28 @@ spec: - "minio" pools: - servers: 2 + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: role + operator: In + values: + - storage + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: v1.min.io/tenant + operator: In + values: + - cds + - key: v1.min.io/pool + operator: In + values: + - pool-0 + topologyKey: kubernetes.io/hostname name: pool-0 volumesPerServer: 3 volumeClaimTemplate: @@ -19,6 +41,7 @@ spec: resources: requests: storage: 3Gi + storageClassName: directpv-min-io containerSecurityContext: runAsUser: 1000 runAsGroup: 1000