# Default values for outside-deploy.
# please pay attention to the global config values which are desired to be modified
#  accordingly to specific outside-deploy environment !!!

global:
  # override all applications
  image:
    repository: 192.168.8.65:8033/cmii # override all applications image repository
    tag: "3.1.0"  # override all applications' image tag/version
    pullPolicy: Always # override all applications' image pullPolicy
  domain:
    TenantEnvironment: "outside"  # which will affect the chosen of frontend AppClientId, and the swagger url of backend Application.
    # if just PublicIP:Port is actually deployed, a fake domain and ingress-nginx http port should be assigned
    DeployDomainName: "euredu.fakedomain.io:30500"
    IsPrivateDeployment: true # 是否是私有化部署
  ingress:
    # tls should be placed in frontend dedicated nginx, this can be enabled in exactly situation
    # please don't modify this unless you know what exactly you are doing
    tls_enabled: false
  middlewareService:
    type: ClusterIP
  appServiceType:
    backend: ClusterIP
    frontend: ClusterIP
  pvc:
    storageClass: nfs-storage-class
  affinity: {} # don't modify this unless you know the whole application of affinity
  nodeAffinityPreset: {} # just modify this for nodeAffinity
#    type: hard
#    key: uavcloud.env
#    values:
#      - "demo"

# --------------------------------------------------------------------------------------------- #
storage-class-gfs:
  enabled: false
  heketi:
    heketiResturl: "http://woshinibaba:9100"
    secret: "woshinibaba" # modify this when not using the default heketi admin password
    secretNamespace: "" # modify tis when storageclass is not in application namespace

all-persistence-volume-claims:
  enabled: false # whether to deploy persistence volume claims or not

all-ingress-config:
  enabled: false # whether to deploy all ingresses or not
  frontendApplication:
    # important for uavcloud platform, include all frontendApplication, will be exposed to public
    enabled: true # whether to deploy frontendApplication
  backendApplication:
    # this ingress is for swagger url, CI/CD url,they can only be accessed only by internal network
    enabled: true # whether to deploy backendApplication
  apiGatewayApplication:
    # important for uavcloud platform, include all api and gateways, will be exposed to public
    enabled: true # whether to deploy apiGatewayApplication or not

mysql-db:
  enabled: false
  primary:
    service:
      nodePort: 33306
  # 最好在MySQL部署完成后，进行相应的数据库初始化！！


#####################################################################################################

all-middleware:
  enabled: false
  emqx:
    enabled:
      clusterMode: true
      standaloneMode: false
  mongo:
    enabled: true
  rabbitmq:
    enabled: true
  nacos:
    enabled: true

minio-storage:
  enabled: false

redis-db:
  enabled: false

frontend-app:
  enabled: true # whether to deploy frontend applications or not

backend-app:
  enabled: true # whether to deploy backend applications or not
  env:
    CUST_JAVA_OPTS: "-Xms500m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
    NACOS_REGISTRY: "helm-nacos:8848"
    NACOS_USERNAME: "developer"
    NACOS_PASSWORD: "Deve@9128201"
  isGenerateCachePVC: true # 是否生成cache的PVC

srs-cluster:
  enabled:
    enabled: false  # 总开关，控制srs是否开启
    webrtc: true    # 开启默认的web rtc模式
    cluster: false  #  是否开启集群模式，集群模式下 webrtc低时延功能不可用
    hook: true      # 默认需要开启，鉴权模式
    rtsp: false     # rtsp业务，默认不部署
  deploy:
    # 修改为集群的对外暴露域名或者IP地址
    domain: 47.254.130.203 # 公网IP
    # domain: www.uavcmlc.com # 公网域名
  apps:
    srs:
      oss:
        endpoint: http://47.254.130.203:39000  # 公网IP:minio端口
        # domain: https://www.oss.uavcmlc.com # 公网minio域名
      ports:
        rtmp: 30935
        rtc: 30090
        api: 30985
        flv: 30080
        hls: 30088

vms:
  enabled: false # whether to deploy vms or not
