Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

56 Commits

Folders and files

Repository files navigation

SEMOSS Helm Chart

Helm chart for deploying SEMOSS on Kubernetes with external PostgreSQL system databases and cloud object storage.

Requirements

  • Kubernetes 1.21+
  • Helm 3.x
  • nginx ingress controller
  • External PostgreSQL instance (5 system databases required)
  • Cloud storage provider (Azure Blob, S3, GCS, or MinIO) — or LOCAL for single-node

Quick Start

git clone https://github.com/SEMOSS/SEMOSS_Helm.git
cd SEMOSS_Helm/semoss
# edit values.yaml with your settings
helm install semoss . -f values.yaml

Chart Contents

Template Description
semoss-deployment.yaml Main SEMOSS application pod
semoss-service.yaml ClusterIP service on port 8080
ingress.yaml nginx ingress with sticky-session cookie affinity
zk-deployment.yaml Zookeeper pod (disabled by default)
zk-service.yaml Zookeeper ClusterIP service on port 2181
_helpers.db.tpl JDBC URL builder; auto-constructs Postgres URLs from shared db config

Configuration

1. Image

semoss:
  image:
    repository: quay.io/semoss/semoss
    tag: "5.1.0-ubuntu22"
    pullPolicy: Always

For private registry access set imagePullSecrets to the name of your pull secret:

imagePullSecrets: "quay-pull-secret"

2. System Databases (required)

All five databases must exist in PostgreSQL before install and set shared connection details under db: In case the type: is set to postgres then the chart auto-builds the JDBC URL per database using semoss/templates/_helpers.db.tpl.

Use connectionUrl only to override the generated URL or when using a non-Postgres setup.

db:
  host: "your-postgres-host"   # required
  username: "username"         # required
  password: "changeme"         # required
  port: 5432                   # optional, default: 5432
  schema: "public"             # optional, default: "public"
  type: "postgres"             # optional, default: "postgres"

  # driver and rdbmsType are optional; only set if non-Postgres (requires connectionUrl)
  # The connectionURL looks like "jdbc:postgresql://<host>:5432/security?currentSchema=public "

securityDb:
  database: "security"    # required  
  connectionUrl: ""       # optional override
  schema: ""              # optional, defaults to db.schema

localmasterDb:
  database: "localmaster" # required
  connectionUrl: ""       # optional override
  schema: ""              # optional, defaults to db.schema


schedulerDb:
  database: "scheduler"  # required
  connectionUrl: ""      # optional override
  schema: ""             # optional, defaults to db.schema


themesDb:
  database: "themes"     # required
  connectionUrl: ""      # optional override
  schema: ""             # optional, defaults to db.schema


usertrackingDb:
  enabled: true              # required
  database: "user_tracking"  # required
  connectionUrl: ""          # optional override
  schema: ""                 # optional, defaults to db.schema

3. Optional Feature Databases

Enable additional databases to activate optional features:

modelInferenceLogsDb:
  enabled: true          # required
  database: "model_logs" # required
  connectionUrl: ""      # optional override
  schema: ""             # optional, defaults to db.schema


promptHubDb:
  enabled: true          # required
  database: "prompt_hub" # required
  connectionUrl: ""      # optional override
  schema: ""             # optional, defaults to db.schema


auditLogsDb:
  enabled: true          # required
  database: "audit_logs" # required
  connectionUrl: ""      # optional override
  schema: ""             # optional, defaults to db.schema

4. Cloud Storage

Set SEMOSS_STORAGE_PROVIDER and the corresponding credentials:

Azure Blob Storage:

semoss:
  environmentVariables:
    SEMOSS_STORAGE_PROVIDER: "AZURE"
    AZCONN: "DefaultEndpointsProtocol=https;AccountName=...;AccountKey=...;EndpointSuffix=core.windows.net"
    AZ_NAME: "mystorageaccount"
    AZ_KEY: "base64key=="

AWS S3:

semoss:
  environmentVariables:
    SEMOSS_STORAGE_PROVIDER: "S3"
    S3_REGION: "us-east-1"
    S3_BUCKET: "my-semoss-bucket"
    S3_ACCESS_KEY: ""   # leave blank when using IRSA / instance role
    S3_SECRET_KEY: ""

For IRSA (AWS EKS), leave S3_ACCESS_KEY/S3_SECRET_KEY empty and set the service account:

semoss:
  serviceAccount:
    name: "semoss-sa"   # annotated with eks.amazonaws.com/role-arn

GCS:

semoss:
  environmentVariables:
    SEMOSS_STORAGE_PROVIDER: "GCS"

5. Ingress

ingress:
  enabled: true
  hosts:
    - host: my.example.org
      paths:
        - /
  tls:
    - hosts:
        - my.example.org
      secretName: semoss-tls

The ingress ships with nginx sticky-session cookie affinity (route-semoss) and 48-hour session expiry configured by default.

6. Cluster Mode (Horizontal Scaling)

For multiple SEMOSS replicas, change the replicaCount value:

semoss:
  replicaCount: 3

To enable Zookeeper, set the value to true. For multiple replicas change the replicaCount value.

zookeeper:
  enabled: true   # deploys ZK pod and auto-sets ZK_SERVER env var
  replicaCount: 1

To use an external Zookeeper instead:

zookeeper:
  enabled: false

semoss:
  environmentVariables:
    ZK_SERVER: "my-zookeeper-host:2181"

7. SSO / Social Login

Native login is enabled by default. To add SSO:

Microsoft Entra ID (Azure AD):

semoss:
  social:
    enable_ms_login: "true"
    ms_authority: "https://login.microsoftonline.com/<tenant>/"
    ms_tenant: "<tenant-id>"
    ms_client_id: "<client-id>"
    ms_secret_key: "<client-secret>"
    ms_redirect_uri: "https://my.example.org/Monolith/api/auth/social/ms"

Google:

semoss:
  social:
    enable_google_login: "true"
    google_client_id: "<client-id>"
    google_secret_key: "<client-secret>"
    google_redirect_uri: "https://my.example.org/Monolith/api/auth/social/google"

GitHub:

semoss:
  social:
    enable_github_login: "true"
    github_client_id: "<client-id>"
    github_secret_key: "<client-secret>"
    github_redirect_uri: "https://my.example.org/Monolith/api/auth/social/github"

8. Resources

Default resource requests and limits:

semoss:
  resources:
    limits:
      cpu: "8"
      memory: "30Gi"
    requests:
      cpu: "2"
      memory: "8Gi"

Upgrade

helm upgrade semoss . -f values.yaml

Note: The deployment uses strategy: Recreate. Pods are terminated before new ones start to prevent split-brain on shared storage.

Uninstall

helm uninstall semoss

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages