apiVersion: service.aep.asag.io/v1
kind: Definition
metadata:
  name: netbird-0.0.0-aa0a87b1
  namespace: asag
spec:
  clusters:
    - flags:
        - from: value
          key: v1_role
          to: label
          value: netbird
      name: netbird
      podspec:
        containers:
          - image: aep/aos/resolute/aep-node
            name: netbird
            resources: {}
      sizing:
        initial: 1
        maximum: 1
        minimum: 1
  dependencies:
    operator:
      name: netbird-operator
      vendor: asag
      version: 1.0.0
  flags:
    - from: setting
      key: v1_dns_servers
      setting: dns_servers
      to: annotation
    - from: setting
      key: v1_admin_email
      setting: admin_email
      to: annotation
    - from: setting
      key: v1_tls_secret
      setting: tls_secret
      to: annotation
  includes:
    - name: defaults-service
      vendor: asag
      version: 0.8.0
  name: netbird
  settings:
    - from:
        - user
      name: admin_email
      required: true
      schema:
        description: Email of the initial owner/admin account for the embedded IdP
        pattern: ^[^@[:space:]]+@[^@[:space:]]+\.[^@[:space:]]+$
        type: string
    - from:
        - user
      name: tls_secret
      schema:
        default: ""
        description: Name of a kubernetes.io/tls secret (tls.crt/tls.key) for Caddy; empty = Let's Encrypt
        type: string
    - from:
        - user
      name: backup_schedule
      schema:
        default: ""
        description: Cron schedule (5-field, UTC) for automatic backups; empty = disabled
        type: string
    - from:
        - user
      name: update_schedule
      schema:
        default: ""
        description: Cron schedule (5-field, UTC) for automatic package updates; empty = disabled
        type: string
    - name: environment
      schema:
        default: netbird_test
    - from:
        - user
      name: dns_servers
      schema:
        default: 10.132.9.1 10.132.9.21
        description: Space-separated DNS servers written to the nodes at first boot
        type: string
    - from:
        - user
      name: exposed_address
      schema:
        default: https://netbird.crb.ch:443
        description: Public URL peers and browsers use to reach the server (behind webgw)
        type: string
  version: 0.0.0-aa0a87b1
