# Default values for dragon-graphql-gateway.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# .redis: &redis
#   redis:
#     enabled: true
#     url: "redis://:a7ZxsqbXZuqR@35.197.200.247:6379/0"

env: production

domainName: graphql.drakemall.xyz
siteDomainName: dev.drakemall.xyz

serviceAccountName: tiller

redis: &redis
  enabled: true
  url: "redis://:a7ZxsqbXZuqR@35.197.200.247:6379/0"

drakemall:
  domainName: "api.drakemall.com"
  apiAddr: "https://api.drakemall.com/api"

dragon-graphql-i18n:
  enabled: true
  nameOverride: dragon-graphql-gateway-i18n

  postgres:
    enabled: true # postgres is required and enabled should be always set to true
    url: postgres://postgres:postgres@localhost:5432/i18n

  redis:
    <<: *redis

  image:
    repository: registry.gitlab.com/skinholdings/i18n-graphql-es-server
    tag: v0.2.8
    pullPolicy: IfNotPresent
    env:
    - name: FOO
      value: bar
    - name: NODE_ENV
      value: development
    - name: SERVICE_PORT
      value: "5000"
    - name: SOCKET_CLOSE_TIMEOUT
      value: "30000"
    # Update translation records every 30 min
    - name: TRANSLATIONS_UPDATE_CRON
      value: "*/30 * * * *"
    - name: PHRASE_APP_ACCESS_TOKEN
      value: 24f8e70913829ab60d4261f6b3fa74f93169e6c45cd3080b8d8150bf64038bd7
    - name: PHRASEAPP_PROJECT_ID_DRAGON
      value: 037ba7ab16f703d3e20fac9c28e1f8d3

graphql_gateway:
  replicaCount: 5
  
  redis:
    <<: *redis

  image:
    repository: "registry.gitlab.com/skinholdings/graphql-gateway"
    # https://gitlab.com/skinholdings/graphql-gateway/tags
    tag: v0.5.1
    pullPolicy: IfNotPresent
  
  # 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
  # resources, such as Minikube. If you do want to specify resources, uncomment the following
  # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  resources:
    limits:
      cpu: 500m
      memory: 512Mi
    requests:
      cpu: 100m
      memory: 128Mi

graphql_adapter:
  replicaCount: 5
  image:
    repository: "registry.gitlab.com/skinholdings/graphql-adapter"
    # https://gitlab.com/skinholdings/graphql-adapter/tags
    tag: v0.29.7
    pullPolicy: IfNotPresent
  
  # 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
  # resources, such as Minikube. If you do want to specify resources, uncomment the following
  # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  resources:
    limits:
      cpu: 900m
      memory: 512Mi
    requests:
      cpu: 100m
      memory: 128Mi

service:
  type: ClusterIP
  port: 5000

ingress:
  enabled: true
  annotations:
    kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
  path: /
  hosts:
    - graphql.drakemall.com
  tls: []
  #  - secretName: chart-example-tls
  #    hosts:
  #      - chart-example.local

nodeSelector: {}

tolerations: []

affinity: {}
