From 5fe2b27c8efe578ec56c1b17f0964747cb479e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Tue, 12 Mar 2024 18:48:15 +0100 Subject: [PATCH] fix --- apps/dolibarr/index.yaml | 392 ++++++++++++++++---------------- apps/dolibarr/redis.tf | 4 +- apps/gitea/index.yaml | 416 +++++++++++++++++----------------- apps/gitea/redis.tf | 4 +- apps/nextcloud/index.yaml | 422 +++++++++++++++++------------------ apps/nextcloud/redis.tf | 4 +- share/dataset-redis/redis.tf | 4 +- 7 files changed, 623 insertions(+), 623 deletions(-) diff --git a/apps/dolibarr/index.yaml b/apps/dolibarr/index.yaml index adb62d5..76a46d7 100644 --- a/apps/dolibarr/index.yaml +++ b/apps/dolibarr/index.yaml @@ -6,144 +6,6 @@ metadata: name: dolibarr description: Open Source ERP & CRM for business options: - domain_name: - default: your_company.com - examples: - - your_company.com - type: string - backups: - default: - enable: false - endpoint: '' - key_id_key: s3-id - restic_key: bck-password - retention: - db: 30d - keepDaily: 14 - keepMonthly: 12 - keepWeekly: 6 - keepYearly: 12 - schedule: - backup: 20 3 * * * - check: 20 5 * * 1 - db: 0 3 * * * - prune: 20 1 * * 0 - secret_key: s3-secret - secret_name: backup-settings - use_barman: false - examples: - - enable: false - endpoint: '' - key_id_key: s3-id - restic_key: bck-password - retention: - db: 30d - keepDaily: 14 - keepMonthly: 12 - keepWeekly: 6 - keepYearly: 12 - schedule: - backup: 20 3 * * * - check: 20 5 * * 1 - db: 0 3 * * * - prune: 20 1 * * 0 - secret_key: s3-secret - secret_name: backup-settings - use_barman: false - properties: - enable: - default: false - type: boolean - endpoint: - default: '' - type: string - key_id_key: - default: s3-id - type: string - restic_key: - default: bck-password - type: string - retention: - default: - db: 30d - keepDaily: 14 - keepMonthly: 12 - keepWeekly: 6 - keepYearly: 12 - properties: - db: - default: 30d - type: string - keepDaily: - default: 14 - type: integer - keepMonthly: - default: 12 - type: integer - keepWeekly: - default: 6 - type: integer - keepYearly: - default: 12 - type: integer - type: object - schedule: - default: - backup: 20 3 * * * - check: 20 5 * * 1 - db: 0 3 * * * - prune: 20 1 * * 0 - properties: - backup: - default: 20 3 * * * - type: string - check: - default: 20 5 * * 1 - type: string - db: - default: 0 3 * * * - type: string - prune: - default: 20 1 * * 0 - type: string - type: object - secret_key: - default: s3-secret - type: string - secret_name: - default: backup-settings - type: string - use_barman: - default: false - type: boolean - type: object - postgres: - default: - replicas: 1 - examples: - - replicas: 1 - properties: - replicas: - default: 1 - type: integer - type: object - redis: - default: - exporter: - enabled: true - examples: - - exporter: - enabled: true - properties: - exporter: - default: - enabled: true - properties: - enabled: - default: true - type: boolean - type: object - type: object images: default: dolibarr: @@ -293,21 +155,6 @@ options: type: string type: object type: object - app_group: - default: '' - examples: - - '' - type: string - ingress_class: - default: traefik - examples: - - traefik - type: string - log-level: - default: 5 - examples: - - 5 - type: integer storage: default: postgres: @@ -395,11 +242,207 @@ options: default: 1 type: integer type: object + backups: + default: + enable: false + endpoint: '' + key_id_key: s3-id + restic_key: bck-password + retention: + db: 30d + keepDaily: 14 + keepMonthly: 12 + keepWeekly: 6 + keepYearly: 12 + schedule: + backup: 20 3 * * * + check: 20 5 * * 1 + db: 0 3 * * * + prune: 20 1 * * 0 + secret_key: s3-secret + secret_name: backup-settings + use_barman: false + examples: + - enable: false + endpoint: '' + key_id_key: s3-id + restic_key: bck-password + retention: + db: 30d + keepDaily: 14 + keepMonthly: 12 + keepWeekly: 6 + keepYearly: 12 + schedule: + backup: 20 3 * * * + check: 20 5 * * 1 + db: 0 3 * * * + prune: 20 1 * * 0 + secret_key: s3-secret + secret_name: backup-settings + use_barman: false + properties: + enable: + default: false + type: boolean + endpoint: + default: '' + type: string + key_id_key: + default: s3-id + type: string + restic_key: + default: bck-password + type: string + retention: + default: + db: 30d + keepDaily: 14 + keepMonthly: 12 + keepWeekly: 6 + keepYearly: 12 + properties: + db: + default: 30d + type: string + keepDaily: + default: 14 + type: integer + keepMonthly: + default: 12 + type: integer + keepWeekly: + default: 6 + type: integer + keepYearly: + default: 12 + type: integer + type: object + schedule: + default: + backup: 20 3 * * * + check: 20 5 * * 1 + db: 0 3 * * * + prune: 20 1 * * 0 + properties: + backup: + default: 20 3 * * * + type: string + check: + default: 20 5 * * 1 + type: string + db: + default: 0 3 * * * + type: string + prune: + default: 20 1 * * 0 + type: string + type: object + secret_key: + default: s3-secret + type: string + secret_name: + default: backup-settings + type: string + use_barman: + default: false + type: boolean + type: object + redis: + default: + exporter: + enabled: true + examples: + - exporter: + enabled: true + properties: + exporter: + default: + enabled: true + properties: + enabled: + default: true + type: boolean + type: object + type: object + domain_name: + default: your_company.com + examples: + - your_company.com + type: string + app_group: + default: '' + examples: + - '' + type: string issuer: default: letsencrypt-prod examples: - letsencrypt-prod type: string + sub_domain: + default: erp + examples: + - erp + type: string + parameters: + default: + MAIN_LANG_DEFAULT: auto + examples: + - MAIN_LANG_DEFAULT: auto + properties: + MAIN_LANG_DEFAULT: + default: auto + type: string + type: object + user-groups: + default: + - admin: true + name: dolibarr-admin + examples: + - - admin: true + name: dolibarr-admin + items: + properties: + admin: + type: boolean + name: + type: string + type: object + type: array + modules: + default: + - societe + examples: + - - societe + items: + type: string + type: array + postgres: + default: + replicas: 1 + examples: + - replicas: 1 + properties: + replicas: + default: 1 + type: integer + type: object + ingress_class: + default: traefik + examples: + - traefik + type: string + domain: + default: your-company + examples: + - your-company + type: string + log-level: + default: 5 + examples: + - 5 + type: integer resources: default: limits: @@ -441,49 +484,6 @@ options: type: string type: object type: object - user-groups: - default: - - admin: true - name: dolibarr-admin - examples: - - - admin: true - name: dolibarr-admin - items: - properties: - admin: - type: boolean - name: - type: string - type: object - type: array - sub_domain: - default: erp - examples: - - erp - type: string - modules: - default: - - societe - examples: - - - societe - items: - type: string - type: array - domain: - default: your-company - examples: - - your-company - type: string - parameters: - default: - MAIN_LANG_DEFAULT: auto - examples: - - MAIN_LANG_DEFAULT: auto - properties: - MAIN_LANG_DEFAULT: - default: auto - type: string - type: object dependencies: - dist: null category: share diff --git a/apps/dolibarr/redis.tf b/apps/dolibarr/redis.tf index 22a400e..008912a 100644 --- a/apps/dolibarr/redis.tf +++ b/apps/dolibarr/redis.tf @@ -5,7 +5,7 @@ locals { } resource "kubectl_manifest" "dolibarr_redis" { yaml_body = <<-EOF - apiVersion: "redis.redis.opstreelabs.in/v1beta1" + apiVersion: "redis.redis.opstreelabs.in/v1beta2" kind: "Redis" metadata: name: "${var.instance}-${var.component}-redis" @@ -25,7 +25,7 @@ resource "kubectl_manifest" "dolibarr_redis" { redisExporter: enabled: ${var.redis.exporter.enabled} image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}" - securityContext: + podSecurityContext: runAsUser: 1000 fsGroup: 1000 EOF diff --git a/apps/gitea/index.yaml b/apps/gitea/index.yaml index d86371a..cc93c3d 100644 --- a/apps/gitea/index.yaml +++ b/apps/gitea/index.yaml @@ -9,96 +9,6 @@ metadata: A painless self-hosted Git service. Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license. options: - ssh-port: - default: 2222 - examples: - - 2222 - type: integer - release: - default: 8.3.0 - examples: - - 8.3.0 - type: string - domain_name: - default: your_company.com - examples: - - your_company.com - type: string - replicas: - default: 1 - examples: - - 1 - type: integer - postgres: - default: - replicas: 1 - examples: - - replicas: 1 - properties: - replicas: - default: 1 - type: integer - type: object - domain: - default: your-company - examples: - - your-company - type: string - webhook: - default: - allowed-hosts: private - skip-tls-verify: false - documentation: https://docs.gitea.com/next/administration/config-cheat-sheet#webhook-webhook - examples: - - allowed-hosts: private - skip-tls-verify: false - properties: - allowed-hosts: - default: private - examples: - - external - - loopback - - '*.yourdomain.com' - type: string - skip-tls-verify: - default: false - type: boolean - type: object - load-balancer: - default: - ip: '' - examples: - - ip: '' - properties: - ip: - default: '' - type: string - type: object - timezone: - default: Europe/Paris - examples: - - Europe/Paris - type: string - default-branch: - default: main - examples: - - main - type: string - app_group: - default: dev - examples: - - dev - type: string - sub_domain: - default: git - examples: - - git - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string backups: default: enable: false @@ -205,56 +115,6 @@ options: default: false type: boolean type: object - ingress_class: - default: traefik - examples: - - traefik - type: string - disable-registration: - default: true - examples: - - true - type: boolean - push-create: - default: - org: 'true' - private: 'false' - user: 'true' - examples: - - org: 'true' - private: 'false' - user: 'true' - properties: - org: - default: 'true' - type: string - private: - default: 'false' - type: string - user: - default: 'true' - type: string - type: object - theme: - default: gitea-modern - examples: - - gitea-modern - type: string - admin: - default: - email: git-admin@git.your_company.com - name: gitea_admin - examples: - - email: git-admin@git.your_company.com - name: gitea_admin - properties: - email: - default: git-admin@git.your_company.com - type: string - name: - default: gitea_admin - type: string - type: object redis: default: exporter: @@ -272,77 +132,25 @@ options: type: boolean type: object type: object - ssh-sub_domain: - default: git - examples: - - git - type: string - storage: + webhook: default: - postgres: - size: 10Gi - redis: - size: 2Gi - volume: - accessMode: ReadWriteOnce - class: '' - size: 20Gi - type: Filesystem - description: Configure this app storage + allowed-hosts: private + skip-tls-verify: false + documentation: https://docs.gitea.com/next/administration/config-cheat-sheet#webhook-webhook examples: - - postgres: - size: 10Gi - redis: - size: 2Gi - volume: - accessMode: ReadWriteOnce - class: '' - size: 20Gi - type: Filesystem + - allowed-hosts: private + skip-tls-verify: false properties: - postgres: - default: - size: 10Gi - properties: - size: - default: 10Gi - type: string - type: object - redis: - default: - size: 2Gi - properties: - size: - default: 2Gi - type: string - type: object - volume: - default: - accessMode: ReadWriteOnce - class: '' - size: 20Gi - type: Filesystem - properties: - accessMode: - default: ReadWriteOnce - enum: - - ReadWriteOnce - - ReadOnlyMany - - ReadWriteMany - type: string - class: - default: '' - type: string - size: - default: 20Gi - type: string - type: - default: Filesystem - enum: - - Filesystem - - Block - type: string - type: object + allowed-hosts: + default: private + examples: + - external + - loopback + - '*.yourdomain.com' + type: string + skip-tls-verify: + default: false + type: boolean type: object images: default: @@ -475,6 +283,198 @@ options: type: string type: object type: object + postgres: + default: + replicas: 1 + examples: + - replicas: 1 + properties: + replicas: + default: 1 + type: integer + type: object + sub_domain: + default: git + examples: + - git + type: string + theme: + default: gitea-modern + examples: + - gitea-modern + type: string + domain: + default: your-company + examples: + - your-company + type: string + domain_name: + default: your_company.com + examples: + - your_company.com + type: string + admin: + default: + email: git-admin@git.your_company.com + name: gitea_admin + examples: + - email: git-admin@git.your_company.com + name: gitea_admin + properties: + email: + default: git-admin@git.your_company.com + type: string + name: + default: gitea_admin + type: string + type: object + ingress_class: + default: traefik + examples: + - traefik + type: string + app_group: + default: dev + examples: + - dev + type: string + ssh-port: + default: 2222 + examples: + - 2222 + type: integer + push-create: + default: + org: 'true' + private: 'false' + user: 'true' + examples: + - org: 'true' + private: 'false' + user: 'true' + properties: + org: + default: 'true' + type: string + private: + default: 'false' + type: string + user: + default: 'true' + type: string + type: object + storage: + default: + postgres: + size: 10Gi + redis: + size: 2Gi + volume: + accessMode: ReadWriteOnce + class: '' + size: 20Gi + type: Filesystem + description: Configure this app storage + examples: + - postgres: + size: 10Gi + redis: + size: 2Gi + volume: + accessMode: ReadWriteOnce + class: '' + size: 20Gi + type: Filesystem + properties: + postgres: + default: + size: 10Gi + properties: + size: + default: 10Gi + type: string + type: object + redis: + default: + size: 2Gi + properties: + size: + default: 2Gi + type: string + type: object + volume: + default: + accessMode: ReadWriteOnce + class: '' + size: 20Gi + type: Filesystem + properties: + accessMode: + default: ReadWriteOnce + enum: + - ReadWriteOnce + - ReadOnlyMany + - ReadWriteMany + type: string + class: + default: '' + type: string + size: + default: 20Gi + type: string + type: + default: Filesystem + enum: + - Filesystem + - Block + type: string + type: object + type: object + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + ssh-sub_domain: + default: git + examples: + - git + type: string + release: + default: 8.3.0 + examples: + - 8.3.0 + type: string + disable-registration: + default: true + examples: + - true + type: boolean + replicas: + default: 1 + examples: + - 1 + type: integer + timezone: + default: Europe/Paris + examples: + - Europe/Paris + type: string + load-balancer: + default: + ip: '' + examples: + - ip: '' + properties: + ip: + default: '' + type: string + type: object + default-branch: + default: main + examples: + - main + type: string dependencies: - dist: null category: share diff --git a/apps/gitea/redis.tf b/apps/gitea/redis.tf index 6316802..db81307 100644 --- a/apps/gitea/redis.tf +++ b/apps/gitea/redis.tf @@ -5,7 +5,7 @@ locals { } resource "kubectl_manifest" "prj_redis" { yaml_body = <<-EOF - apiVersion: "redis.redis.opstreelabs.in/v1beta1" + apiVersion: "redis.redis.opstreelabs.in/v1beta2" kind: "Redis" metadata: name: "${var.instance}-${var.component}-redis" @@ -25,7 +25,7 @@ resource "kubectl_manifest" "prj_redis" { redisExporter: enabled: ${var.redis.exporter.enabled} image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}" - securityContext: + podSecurityContext: runAsUser: 1000 fsGroup: 1000 EOF diff --git a/apps/nextcloud/index.yaml b/apps/nextcloud/index.yaml index 10eb4a3..a5730d1 100644 --- a/apps/nextcloud/index.yaml +++ b/apps/nextcloud/index.yaml @@ -6,6 +6,28 @@ metadata: name: nextcloud description: null options: + openid-name: + default: vynil + examples: + - vynil + type: string + redis: + default: + exporter: + enabled: true + examples: + - exporter: + enabled: true + properties: + exporter: + default: + enabled: true + properties: + enabled: + default: true + type: boolean + type: object + type: object hpa: default: avg-cpu: 50 @@ -26,21 +48,21 @@ options: default: 1 type: integer type: object - domain_name: - default: your_company.com + ingress_class: + default: traefik examples: - - your_company.com + - traefik type: string - admin: - default: - name: nextcloud_admin + domain: + default: your-company examples: - - name: nextcloud_admin - properties: - name: - default: nextcloud_admin - type: string - type: object + - your-company + type: string + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string apps: default: audioplayer: false @@ -141,159 +163,85 @@ options: default: 1 type: integer type: object - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - domain: - default: your-company - examples: - - your-company - type: string - backups: + storage: default: - enable: false - endpoint: '' - key_id_key: s3-id - restic_key: bck-password - retention: - db: 30d - keepDaily: 14 - keepMonthly: 12 - keepWeekly: 6 - keepYearly: 12 - schedule: - backup: 30 3 * * * - check: 30 5 * * 1 - db: 30 3 * * * - prune: 30 1 * * 0 - secret_key: s3-secret - secret_name: backup-settings - use_barman: false + postgres: + size: 5Gi + redis: + size: 2Gi + volume: + accessMode: ReadWriteOnce + class: '' + size: 10Gi + type: Filesystem + description: Configure this app storage examples: - - enable: false - endpoint: '' - key_id_key: s3-id - restic_key: bck-password - retention: - db: 30d - keepDaily: 14 - keepMonthly: 12 - keepWeekly: 6 - keepYearly: 12 - schedule: - backup: 30 3 * * * - check: 30 5 * * 1 - db: 30 3 * * * - prune: 30 1 * * 0 - secret_key: s3-secret - secret_name: backup-settings - use_barman: false + - postgres: + size: 5Gi + redis: + size: 2Gi + volume: + accessMode: ReadWriteOnce + class: '' + size: 10Gi + type: Filesystem properties: - enable: - default: false - type: boolean - endpoint: - default: '' - type: string - key_id_key: - default: s3-id - type: string - restic_key: - default: bck-password - type: string - retention: + postgres: default: - db: 30d - keepDaily: 14 - keepMonthly: 12 - keepWeekly: 6 - keepYearly: 12 + size: 5Gi properties: - db: - default: 30d - type: string - keepDaily: - default: 14 - type: integer - keepMonthly: - default: 12 - type: integer - keepWeekly: - default: 6 - type: integer - keepYearly: - default: 12 - type: integer - type: object - schedule: - default: - backup: 30 3 * * * - check: 30 5 * * 1 - db: 30 3 * * * - prune: 30 1 * * 0 - properties: - backup: - default: 30 3 * * * - type: string - check: - default: 30 5 * * 1 - type: string - db: - default: 30 3 * * * - type: string - prune: - default: 30 1 * * 0 + size: + default: 5Gi type: string type: object - secret_key: - default: s3-secret - type: string - secret_name: - default: backup-settings - type: string - use_barman: - default: false - type: boolean - type: object - openid-name: - default: vynil - examples: - - vynil - type: string - sub_domain: - default: files - examples: - - files - type: string - app_group: - default: '' - examples: - - '' - type: string - ingress_class: - default: traefik - examples: - - traefik - type: string - redis: - default: - exporter: - enabled: true - examples: - - exporter: - enabled: true - properties: - exporter: + redis: default: - enabled: true + size: 2Gi properties: - enabled: - default: true - type: boolean + size: + default: 2Gi + type: string + type: object + volume: + default: + accessMode: ReadWriteOnce + class: '' + size: 10Gi + type: Filesystem + properties: + accessMode: + default: ReadWriteOnce + enum: + - ReadWriteOnce + - ReadOnlyMany + - ReadWriteMany + type: string + class: + default: '' + type: string + size: + default: 10Gi + type: string + type: + default: Filesystem + type: string type: object type: object + admin: + default: + name: nextcloud_admin + examples: + - name: nextcloud_admin + properties: + name: + default: nextcloud_admin + type: string + type: object + domain_name: + default: your_company.com + examples: + - your_company.com + type: string images: default: collabora: @@ -549,69 +497,121 @@ options: type: string type: object type: object - storage: - default: - postgres: - size: 5Gi - redis: - size: 2Gi - volume: - accessMode: ReadWriteOnce - class: '' - size: 10Gi - type: Filesystem - description: Configure this app storage + app_group: + default: '' examples: - - postgres: - size: 5Gi - redis: - size: 2Gi - volume: - accessMode: ReadWriteOnce - class: '' - size: 10Gi - type: Filesystem + - '' + type: string + sub_domain: + default: files + examples: + - files + type: string + backups: + default: + enable: false + endpoint: '' + key_id_key: s3-id + restic_key: bck-password + retention: + db: 30d + keepDaily: 14 + keepMonthly: 12 + keepWeekly: 6 + keepYearly: 12 + schedule: + backup: 30 3 * * * + check: 30 5 * * 1 + db: 30 3 * * * + prune: 30 1 * * 0 + secret_key: s3-secret + secret_name: backup-settings + use_barman: false + examples: + - enable: false + endpoint: '' + key_id_key: s3-id + restic_key: bck-password + retention: + db: 30d + keepDaily: 14 + keepMonthly: 12 + keepWeekly: 6 + keepYearly: 12 + schedule: + backup: 30 3 * * * + check: 30 5 * * 1 + db: 30 3 * * * + prune: 30 1 * * 0 + secret_key: s3-secret + secret_name: backup-settings + use_barman: false properties: - postgres: + enable: + default: false + type: boolean + endpoint: + default: '' + type: string + key_id_key: + default: s3-id + type: string + restic_key: + default: bck-password + type: string + retention: default: - size: 5Gi + db: 30d + keepDaily: 14 + keepMonthly: 12 + keepWeekly: 6 + keepYearly: 12 properties: - size: - default: 5Gi - type: string - type: object - redis: - default: - size: 2Gi - properties: - size: - default: 2Gi - type: string - type: object - volume: - default: - accessMode: ReadWriteOnce - class: '' - size: 10Gi - type: Filesystem - properties: - accessMode: - default: ReadWriteOnce - enum: - - ReadWriteOnce - - ReadOnlyMany - - ReadWriteMany - type: string - class: - default: '' - type: string - size: - default: 10Gi - type: string - type: - default: Filesystem + db: + default: 30d + type: string + keepDaily: + default: 14 + type: integer + keepMonthly: + default: 12 + type: integer + keepWeekly: + default: 6 + type: integer + keepYearly: + default: 12 + type: integer + type: object + schedule: + default: + backup: 30 3 * * * + check: 30 5 * * 1 + db: 30 3 * * * + prune: 30 1 * * 0 + properties: + backup: + default: 30 3 * * * + type: string + check: + default: 30 5 * * 1 + type: string + db: + default: 30 3 * * * + type: string + prune: + default: 30 1 * * 0 type: string type: object + secret_key: + default: s3-secret + type: string + secret_name: + default: backup-settings + type: string + use_barman: + default: false + type: boolean type: object dependencies: - dist: null diff --git a/apps/nextcloud/redis.tf b/apps/nextcloud/redis.tf index 6316802..db81307 100644 --- a/apps/nextcloud/redis.tf +++ b/apps/nextcloud/redis.tf @@ -5,7 +5,7 @@ locals { } resource "kubectl_manifest" "prj_redis" { yaml_body = <<-EOF - apiVersion: "redis.redis.opstreelabs.in/v1beta1" + apiVersion: "redis.redis.opstreelabs.in/v1beta2" kind: "Redis" metadata: name: "${var.instance}-${var.component}-redis" @@ -25,7 +25,7 @@ resource "kubectl_manifest" "prj_redis" { redisExporter: enabled: ${var.redis.exporter.enabled} image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}" - securityContext: + podSecurityContext: runAsUser: 1000 fsGroup: 1000 EOF diff --git a/share/dataset-redis/redis.tf b/share/dataset-redis/redis.tf index 68aa396..c4e7958 100644 --- a/share/dataset-redis/redis.tf +++ b/share/dataset-redis/redis.tf @@ -5,7 +5,7 @@ locals { } resource "kubectl_manifest" "prj_redis" { yaml_body = <<-EOF - apiVersion: "redis.redis.opstreelabs.in/v1beta1" + apiVersion: "redis.redis.opstreelabs.in/v1beta2" kind: "Redis" metadata: name: "${var.instance}-${var.component}" @@ -25,7 +25,7 @@ resource "kubectl_manifest" "prj_redis" { redisExporter: enabled: ${var.exporter.enable} image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}" - securityContext: + podSecurityContext: runAsUser: 1000 fsGroup: 1000 EOF