version: '2'
.catalog:
  name: Harbor
  version: 1.1.1-1-rev1
  description: |
    Enterprise Class Container Registry [by VMware]
  minimum_rancher_version: v0.59.0
  uuid: harbor-4
  questions:
    - variable: "harborhostname"
      description: "Harbor IP, HOSTNAME or FQDN as used to acces it from the Docker CLI"
      label: "IP/Hostname/FQDN:"
      required: true
      default: myregistry
      type: "string"
    - variable: "harbor_admin_password"
      label: "Harbor password:"
      description: |
        Harbor admin password
      default: Vmware123!
      required: true
      type: "string"
    - variable: "harborhostlabel"
      label: "Harbor will be deployed on the host(s) with this label (default: harbor-host=true)"
      description: |
        The various Harbor containers will be deployed on host(s) with this label
        Set the label on one host if you want Harbor to be deployed on a single host (rancher-nfs volume driver is required for multiple hosts)
      default: harbor-host=true
      required: true
      type: "string"    
    - variable: "harborlbhostlabel"
      label: "Rancher load balancer will be deployed on the host(s) with this label (default: harbor-lb-host=true)"
      description: |
        The Rancher load balancer will be deployed on host(s) with this label
        Make sure you understand the pre-requisite as outlined in the README document above
      default: harbor-lb-host=true
      required: true
      type: "string"    
    - variable: "volumedriver"
      description: "Volume Driver being used. Set rancher-nfs if you run in distributed mode"
      label: "Volume Driver:"
      required: true
      default: local
      type: "enum"
      options:
        - local
        - rancher-nfs
services:
  registry:
    scale: 1
  adminserver:
    scale: 1
  proxy:
    scale: 1
  harbor-lb:  
    scale: 1
    lb_config:
      port_rules:
      - source_port: 80
        target_port: 80
        service: proxy
    health_check:
      port: 42
      interval: 2000
      unhealthy_threshold: 3
      healthy_threshold: 2
      response_timeout: 2000
  jobservice:
    scale: 1
  ui:
    scale: 1
  mysql:
    scale: 1
  harbor-setupwrapper:
    scale: 1
