Rudder Virt

#Build-only Overrides

Some settings make sense during the build but not in the clones. A build often needs:

  • Internet access (to install packages from upstream repos).
  • More CPU / RAM (to compile or process faster).

But the resulting clones probably should not:

  • Have internet.
  • Reserve those large resources permanently.

Use build_overrides for build-only settings. Most options are YAML-only. The exception is VPC internet: in the editor, choose Build only from the VPC's Internet dropdown.

network:
    vpcs:
        - name: vpc
          internet: false # clones get NO internet
    subnets:
        - name: lan
          vpc: vpc
          cidr: '10.0.0.0/24'

build_overrides:
    vpcs:
        - name: vpc
          internet: true # build phase only; flip on to install packages
    vms:
        - name: builder
          resources:
              cpu: 8 # build with 8 CPUs
              memory: '16Gi' # and 16Gi memory

vms:
    - name: builder
      source: { url: '...' }
      resources:
          cpu: 2 # clones get 2 CPUs
          memory: '4Gi' # and 4Gi memory
      # ...

The base values in network and vms[].resources are what gets recorded into the module and inherited by clones. build_overrides only affects this build's own VMs.