Installation and administration guide
Examples
Basic Deployment

Example chart configuration

The Basic Deployment section presents a simple configuration for deploying an application in a production environment. The example covers essential components needed to run the application, such as resource configuration, environment variables and secret creation. With this configuration, users will be able to easily perform the initial deployment of the application.

somTemplates:
    general:
        namespace: "dev"
        imageRegistry:
            basePath: "registry.local.com"
        internalConfiguration:
        mongodb:
            protocol: "mongodb or mongodb+srv for atlas"
            parameters:
            base: "/?retryWrites=true&w=majority"
            query: "/?retryWrites=false&w=majority&readPreference=secondaryPreferred"
            defaultSecret:
              mongodbHost: "mongo.host.local"
              mongodbPort: 27017
              mongoUser: "mongo"
              mongoPassword: "mongo"
        rabbitmq:
            rabbitmqHost: "som-rabbitmq-service"
            rabbitmqPort: 5672
            defaultSecret:
              rabbitmqUser: "rabbitmq"
              rabbitmqPassword: "rabbitmq"
        externalConfiguration:
            keycloakAuthUrl: "https://keycloak.local.com/keycloak/auth"
            keycloakRealm: "som"
        specifyAnnotations:
            myannotationforall/pods: 'true'
 
somTemplates:
  somService:
    global:
      name: "som-service-auditlog"
      image:
        repository:
          imagePath: "/som/core/audit-logs/som-service-audit-log/som-service-audit-log"
        pullPolicy: Always
        tag: "latest"
      imagePullSecrets: "docker-registry-secret<if needed>"
 
    env:
    - name: _JAVA_OPTIONS
      value: "-XX:MaxRAMPercentage=75 -XX:+ExitOnOutOfMemoryError"
    resources:
      limits:
        cpu: 1000m
        memory: 512Mi
      requests:
        cpu: 500m
        memory: 512Mi
 
somTemplates:
  somService:
    global:
      name: "som-service-bff"
      image:
          repository:
            imagePath: "/som/som-service-bff"
          pullPolicy: Always
          tag: "latest"
      imagePullSecrets: "docker-registry-secret<if needed"
 
    env:
    - name: _JAVA_OPTIONS
      value: "-XX:MaxRAMPercentage=75 -XX:+ExitOnOutOfMemoryError"
 
    configurationManagement:
      applicationSecurity:
        mode: "custom"
        customSecurityConfiguration:
          oauth2:
            resourceserver:
              jwt:
                issuer-uri: "https://keycloak.local.com/keycloak/auth/realms/som"
 
    resources:
      limits:
        cpu: 1000m
        memory: 512Mi
      requests:
        cpu: 500m
        memory: 512Mi
somTemplates:
  somService:
    global:
      name: "som-service-error"
      image:
        repository:
          imagePath: "/som/som-service-error"
        pullPolicy: Always
        tag: "latest"
      imagePullSecrets: "docker-registry-secret<if needed"
      secrets:
      defaultSecret:
        additionalCustomSecrets: {
        clientSecret: "somerror-client-secret-from-kck"
        }
 
    env:
    - name: _JAVA_OPTIONS
      value: "-XX:MaxRAMPercentage=60 -XX:+ExitOnOutOfMemoryError"
    resources:
      limits:
        cpu: 1000m
        memory: 512Mi
      requests:
        cpu: 500m
        memory: 512Mi
 
somTemplates:
  somService:
    global:
      name: "som-service-fulfillment"
      image:
        repository:
          imagePath: "/som/som-service-fulfillment"
        pullPolicy: Always
        tag: "latest"
      imagePullSecrets: "docker-registry-secret<if needed"
    env:
    - name: _JAVA_OPTIONS
      value: "-XX:MaxRAMPercentage=70 -XX:+ExitOnOutOfMemoryError"
    resources:
      limits:
        cpu: 1000m
        memory: 1024Mi
      requests:
        cpu: 500m
        memory: 1024Mi
somTemplates:
  somService:
    global:
      name: "som-service-incoming-orders"
      image:
        repository:
          imagePath: "/som/som-service-incoming-orders"
        pullPolicy: Always
        tag: "latest"
      imagePullSecrets: "docker-registry-secret<if needed"
    env:
    - name: _JAVA_OPTIONS
      value: "-XX:MaxRAMPercentage=70 -XX:+ExitOnOutOfMemoryError"
    resources:
      limits:
        cpu: 1000m
        memory: 1024Mi
      requests:
        cpu: 500m
        memory: 1024Mi
  somTemplates:
    somService:
      global:
        name: "som-dev-service-order"
        image:
          repository:
            imagePath: "/som/som-dev-service-order"
          pullPolicy: Always
          tag: "latest"
        imagePullSecrets: "docker-registry-secret<if needed"
      env:
      - name: _JAVA_OPTIONS
        value: "-XX:MaxRAMPercentage=70 -XX:+ExitOnOutOfMemoryError"
      resources:
        limits:
          cpu: 1000m
          memory: 1024Mi
        requests:
          cpu: 500m
          memory: 1024Mi
  somTemplates:
    somService:
      global:
        name: "som-dev-service-plan-builder"
        image:
          repository:
            imagePath: "/som/som-dev-service-plan-builder"
          pullPolicy: Always
          tag: "latest"
        imagePullSecrets: "docker-registry-secret<if needed"
      env:
      - name: _JAVA_OPTIONS
        value: "-XX:MaxRAMPercentage=70 -XX:+ExitOnOutOfMemoryError"
      resources:
        limits:
          cpu: 1000m
          memory: 1024Mi
        requests:
          cpu: 500m
          memory: 1024Mi
 
  somTemplates:
    somService:
      global:
        name: "som-dev-service-validation"
        image:
          repository:
            imagePath: "/som/som-dev-service-validationr"
          pullPolicy: Always
          tag: "latest"
        imagePullSecrets: "docker-registry-secret<if needed"
      env:
      - name: _JAVA_OPTIONS
        value: "-XX:MaxRAMPercentage=60 -XX:+ExitOnOutOfMemoryError"
 
      resources:
        limits:
          cpu: 1000m
          memory: 512Mi
        requests:
          cpu: 500m
          memory: 512Mi
  somTemplates:
    somService:
      global:
        name: "som-dev-step-executors"
        image:
          repository:
            imagePath: "/som/som-dev-step-executors"
          pullPolicy: Always
          tag: "latest"
        imagePullSecrets: "docker-registry-secret<if needed"
      env:
      - name: _JAVA_OPTIONS
        value: "-XX:MaxRAMPercentage=60 -XX:+ExitOnOutOfMemoryError"
      resources:
        limits:
          cpu: 1000m
          memory: 512Mi
        requests:
          cpu: 500m
          memory: 512Mi
      extraConfiguration:
        template:
          steps: CreateProductIMS, ActivateNetworkNS, ManageDeliveryDS, ManagePaymentBS, UpdateStatusIMS, WaitForMainProductCreation, WaitForPaymentCompletion
 
 
  somTemplates:
    somService:
      global:
        name: "som-service-dead-letter"
        image:
          repository:
            imagePath: "/som/som-dev-service-dead-letter"
          pullPolicy: Always
          tag: "latest"
        imagePullSecrets: "docker-registry-secret<if needed"
      env:
      - name: _JAVA_OPTIONS
        value: "-XX:MaxRAMPercentage=60 -XX:+ExitOnOutOfMemoryError"
      resources:
        limits:
          cpu: 1000m
          memory: 512Mi
        requests:
          cpu: 500m
          memory: 512Mi
 
  general:
    imageRegistry:
      basePath: "registry.base.url.local/"
      repositoryName: "registry-repository"
    namespace: "dev"
    specifyLabels:
      monitoring: "app"
  somService:
    global:
      name: "som-service-gui"
    env:
    - name: REST_API_URL
      value: "https://external-address.local/som-service-bff"
    - name: KEYCLOAK_URL
      value: "https://external-address.local/keycloak/auth"
    - name: REALM
      value: som
    resources:
      limits:
        cpu: 650m
        memory: 512Mi
      requests:
        cpu: 300m
        memory: 512Mi