From 243260f47932287bb527be1612e403aaa7d30078 Mon Sep 17 00:00:00 2001 From: Jonas Juselius Date: Sat, 16 Nov 2024 14:23:34 +0100 Subject: [PATCH] feat: add redis to sorcerer --- charts/sorcerer/Chart.yaml | 18 ++++-------- charts/sorcerer/values.yaml | 56 +++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 12 deletions(-) diff --git a/charts/sorcerer/Chart.yaml b/charts/sorcerer/Chart.yaml index 57e42d6b..f5351134 100644 --- a/charts/sorcerer/Chart.yaml +++ b/charts/sorcerer/Chart.yaml @@ -1,18 +1,12 @@ apiVersion: v2 name: sorcerer description: A Helm chart for Kubernetes -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. type: application -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. version: v4.9.0 -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. appVersion: v4.9.0 +dependencies: + - name: redis + version: 20.1.7 + repository: https://charts.bitnami.com/bitnami + condition: redis.enabled + alias: redis diff --git a/charts/sorcerer/values.yaml b/charts/sorcerer/values.yaml index 6b11f35e..e268839a 100644 --- a/charts/sorcerer/values.yaml +++ b/charts/sorcerer/values.yaml @@ -3,18 +3,28 @@ # Declare variables to be passed into your templates. replicaCount: 1 + image: repository: registry.gitlab.com/oceanbox/sorcerer tag: v4.9.0 pullPolicy: IfNotPresent + init: enabled: false image: ubuntu:rolling command: ["/bin/sh", "-c", "true"] + +env: + - name: LOG_LEVEL + value: "3" + imagePullSecrets: - name: gitlab-pull-secret + nameOverride: "" + fullnameOverride: "" + serviceAccount: create: true # Annotations to add to the service account @@ -22,9 +32,12 @@ serviceAccount: # The name of the service account to use. # If not set and create is true, a name is generated using the fullname template name: "" + podAnnotations: {} + podSecurityContext: fsGroup: 2000 + securityContext: capabilities: drop: @@ -32,9 +45,11 @@ securityContext: readOnlyRootFilesystem: false runAsNonRoot: true runAsUser: 1000 + service: type: ClusterIP port: 8085 + ingress: enabled: true className: "nginx" @@ -62,6 +77,43 @@ cluster: backupEnabled: true backupRetention: 60d size: 5Gi + + +redis: + enabled: true + image: + repository: redis/redis-stack-server + tag: 7.2.0-v10 + architecture: standalone + replica: + replicaCount: 1 + command: + - "/opt/redis-stack/bin/redis-server" + - "--loadmodule" + - "/opt/redis-stack/lib/redisearch.so" + - "MAXSEARCHRESULTS" + - "10000" + - "MAXAGGREGATERESULTS" + - "10000" + - "--loadmodule" + - "/opt/redis-stack/lib/rejson.so" + auth: + enabled: true + sentinel: true + password: "" + usePasswordFiles: false + existingSecretPasswordKey: "" + # existingSecret: staging-redis + master: + resources: + limits: + ephemeral-storage: 1024Mi + memory: 192Mi + requests: + cpu: 150m + ephemeral-storage: 50Mi + memory: 128Mi + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little @@ -80,6 +132,10 @@ autoscaling: maxReplicas: 100 targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 + +serviceMonitor: + enabled: true + nodeSelector: {} tolerations: [] affinity: {}