Helm: Is it possible to increase de number of replica?

Hi,

We have appsmith install in my cluster and we are using a external database. I change de replica count in the helm chart, but the change is not reflect in the cluster. I also try by enabling autoscaling with min and max replicas.

apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: scoladmin
  namespace: default
spec:
  interval: 1m
  chart:
    spec:
      chart: appsmith
      version: "1.5.3"
      sourceRef:
        kind: HelmRepository
        name: appsmith
        namespace: flux-system
  values:
    replicaCount: 2

Is there a reason to only have 1 instance of appsmith running in the cluster?

Thank you

Are you on CE or EE?

We use the community edition?

Hi, in community edition we get a statefulSet and in order to scale the number of instances of appsmith you can do the following

kubectl scale statefulsets/<statefulset-name> -n <namespace> --replicas=<replicas_required>

autoscaling is not currently available in communityEdition.

Can you share the commands used and the behavior you are seeing because we couldn’t reproduce the behavior .

Your command is working. The cluster is configured with flux, so normally I don’t use kubectl directly. I use a helmRelease file base on your chart.

apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: scoladmin
  namespace: default
spec:
  interval: 1m
  chart:
    spec:
      chart: appsmith
      version: "1.5.3" # Bug with newer version of appsmith https://github.com/appsmithorg/appsmith/issues/18589
      sourceRef:
        kind: HelmRepository
        name: appsmith
        namespace: flux-system
  values:
    replicaCount: 2
    autoupdate:
      enabled: false
    ingress:
      enabled: true
      certManager: true
      annotations:
        cert-manager.io/cluster-issuer: letsencrypt-prod
        kubernetes.io/ingress.class: nginx
        nginx.ingress.kubernetes.io/whitelist-source-range: *****************
      tls: true
      hosts:
      - host: *****************
        paths:
        - path: /
          pathType: Prefix
      certManagerTls:
      - secretName: *****************
        hosts:
         - *****************
    persistence: 
      enabled: false
    resources:
      limits:
        cpu: 700m
        memory: 2048Mi
      requests:
        cpu: 400m
        memory: 1024Mi
    applicationConfig:
      APPSMITH_SIGNUP_ALLOWED_DOMAINS: *****************
      APPSMITH_CUSTOM_DOMAIN: *****************
      APPSMITH_MONGODB_URI: *****************
      APPSMITH_ADMIN_EMAILS: *****************
      APPSMITH_ENCRYPTION_SALT: *****************
      APPSMITH_ENCRYPTION_PASSWORD: *****************
      APPSMITH_DISABLE_TELEMETRY: true
      APPSMITH_MAIL_ENABLED: true
      APPSMITH_MAIL_HOST: *****************
      APPSMITH_MAIL_PORT: 587
      APPSMITH_MAIL_USERNAME: *****************
      APPSMITH_MAIL_PASSWORD: *****************
      APPSMITH_MAIL_FROM: *****************
      APPSMITH_REPLY_TO: *****************
      APPSMITH_MAIL_SMTP_AUTH: true
      APPSMITH_MAIL_SMTP_TLS_ENABLED: true
      APPSMITH_OAUTH2_GOOGLE_CLIENT_ID: *****************
      APPSMITH_OAUTH2_GOOGLE_CLIENT_SECRET: *****************
      APPSMITH_SIGNUP_DISABLED: true

Thanks for your continuous support and patience. We hope your issue is resolved now.

Let us know how did we do?
https://survey.frontapp.com/v2/09a400bf433bc9676d67/7c3e1b2144b218ea7d577d1f0c8113a3