Skip to content
Snippets Groups Projects
rocketchat-values-configmap.yaml 4.12 KiB
Newer Older
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: oas-rocketchat-values
data:
  values.yaml: |
    # Hostname for Rocket.chat
    host: "chat.${domain}"

    # Extra environment variables for Rocket.Chat. Used with tpl function, so this
    # needs to be a string
    extraEnv: |
      - name: ADMIN_USERNAME
        value: admin
      - name: ADMIN_PASS
        value: "${rocketchat_admin_password}"
      - name: ADMIN_EMAIL
        value: "${admin_email}"
        # Set setup wizard to completed. The setup wizard, that allows you to
        # create a different admin user, gets skipped.
      - name: OVERWRITE_SETTING_Show_Setup_Wizard
        value: completed
      - name: E2E_Enable
        value: "true"
      - name: Accounts_RegistrationForm
        value: Disabled
      - name: Accounts_RegistrationForm_LinkReplacementText
        value: "Create a new account at admin.${domain} to add users"
      # Custom OAuth rules:
      - name: Accounts_OAuth_Custom_Openappstack
        value: "true"
      - name: Accounts_OAuth_Custom_Openappstack_url
        value: https://sso.${domain}
      - name: Accounts_OAuth_Custom_Openappstack_token_path
        value: /oauth2/token
      - name: Accounts_OAuth_Custom_Openappstack_token_sent_via
        value: payload
      - name: Accounts_OAuth_Custom_Openappstack_identity_token_sent_via
        value: payload
      - name: Accounts_OAuth_Custom_Openappstack_identity_path
        value: /userinfo
      - name: Accounts_OAuth_Custom_Openappstack_authorize_path
        value: /oauth2/auth
      - name: Accounts_OAuth_Custom_Openappstack_scope
        value: openid profile openappstack_roles email
      - name: Accounts_OAuth_Custom_Openappstack_id
        value: rocketchat
      - name: Accounts_OAuth_Custom_Openappstack_secret
        value: ${rocketchat_oauth_client_secret}
      - name: Accounts_OAuth_Custom_Openappstack_login_style
        value: redirect
      - name: Accounts_OAuth_Custom_Openappstack_button_label_text
        value: Login via OpenAppStack
      - name: Accounts_OAuth_Custom_Openappstack_button_label_color
        value: "#FFFFFF"
      - name: Accounts_OAuth_Custom_Openappstack_button_color
        value: "#1d74f5"
      - name: Accounts_OAuth_Custom_Openappstack_username_field
        value: preferred_username
      - name: Accounts_OAuth_Custom_Openappstack_name_field
        value: preferred_username
      - name: Accounts_OAuth_Custom_Openappstack_roles_claim
        value: openappstack_roles
      - name: Accounts_OAuth_Custom_Openappstack_merge_roles
        value: "true"
      - name: Accounts_OAuth_Custom_Openappstack_merge_users
        value: "true"
      - name: Accounts_OAuth_Custom_Openappstack_show_button
        value: "true"

    livenessProbe:
      initialDelaySeconds: 180
      failureThreshold: 20
    readinessProbe:
      initialDelaySeconds: 60
      timeoutSeconds: 10

    ingress:
      enabled: true
      annotations:
        # Tell cert-manager to automatically get a TLS certificate
        kubernetes.io/tls-acme: "true"
      tls:
        - hosts:
            - "chat.${domain}"
          secretName: oas-rocketchat

    persistence:
      enabled: true
      size: 1Gi
      # FIXME: This valuee leads to an unused PVC, which helm-controller does
      # not like.
      # existingClaim: "rocketchat-data"

    podAnnotations:
      # Let the backup system include rocketchat data.
      backup.velero.io/backup-volumes: "rocket-data"

    resources:
      limits:
        cpu: 400m
        memory: 1024Mi
      requests:
        cpu: 100m
        memory: 768Mi

    mongodb:
      auth:
        rootPassword: ${mongodb_root_password}
        password: ${mongodb_password}
      podAnnotations:
        # Let the backup system include rocketchat data stored in mongodb.
        backup.velero.io/backup-volumes: "datadir"
      persistence:
        enabled: true
        # FIXME: This value is ignored by the chart currently in use
        # existingClaim: "rocketchat-mongodb"
      resources:
        limits:
          cpu: 600m
          memory: 1024Mi
        requests:
          cpu: 300m
          memory: 768Mi

    image:
      tag: 3.15.0
      pullPolicy: IfNotPresent