global:
  registry: docker.io
  repository: freeleaps
  nodeSelector: {}
devops:
  replicas: 1
  image:
    registry:
    repository: freeleaps
    name: devops
    tag: 1.0.0
    imagePullPolicy: IfNotPresent
  ports:
    - name: http
      containerPort: 8014
      protocol: TCP
  resources:
    requests:
      cpu: "0.1"
      memory: "64Mi"
    limits:
      cpu: "0.2"
      memory: "128Mi"
  # FIXME: Wait until the developers implements the probes APIs
  probes: {}
  services:
    - name: devops-service
      type: ClusterIP
      port: 8014
      targetPort: 8014
      serviceMonitor:
        enabled: false
        labels:
          release: kube-prometheus-stack
        namespace: freeleaps-monitoring-system
        interval: 30s
        scrapeTimeout: ""
  # Defaults to {}, which means doesn't have any ingress
  ingresses: {}
  configs:
    # Basic configuration
    tz: "UTC"
    appName: "devops"
    jwtAlgorithm: "HS256"
    accessTokenExpireMinutes: "3600"
    refreshTokenExpireDays: "1"
    # MongoDB configuration
    appMongodbName: ""
    appMongodbPort: "27017"
    # Feature switches
    metricsEnabled: "false"
    probesEnabled: "true"
    # External service URLs
    baseGiteaUrl: "https://gitea.freeleaps.mathmast.com"
    baseReconcileUrl: "https://reconcile.freeleaps.mathmast.com"
    baseLokiUrl: "http://loki-gateway.freeleaps-logging-system"
    # Log configuration
    logBasePath: "/app/log"
    logRetention: "30 days"
    logRotation: "00:00"
    logBackupFiles: "5"
    logRotationBytes: "10485760"
    # Mock mode configuration
    mockMode: "false"
    mockResponseDelay: "1000"
  # AKV secrets configuration
  secrets:
    secretStoreRef:
      kind: FreeleapsSecretStore
      name: freeleaps-main-secret-store
    target:
      name: "freeleaps-devops-secrets"
      creationPolicy: "Owner"
    refreshInterval: 30s
    data:
      - key: appMongodbUri
        remoteRef:
          key: "freeleaps-mongodb-uri"
          type: Secret
      - key: rabbitmqPassword
        remoteRef:
          key: "freeleaps-rabbitmq-password"
          type: Secret
  vpa:
    minAllowed:
      enabled: false
      cpu: 100m
      memory: 64Mi
    maxAllowed:
      enabled: true
      cpu: 100m
      memory: 128Mi
    controlledResources:
      - cpu
      - memory