This message was deleted.
# harvester
a
This message was deleted.
and set it as default if desired
t
I set it on install with PXE :
Copy code
[root@boot ~]# cat /opt/netboot/harvester/harvester_slim.yaml 
schemeversion: 1
serverurl: ""
token: ilikechicken
os:
    afterinstallchrootcommands: []
    sshauthorizedkeys: []
    writefiles: []
    hostname: slim
    modules:
        - kvm
        - vhost_net
        - nvme
    sysctls:
      kernel.printk: "4 4 1 7"
      kernel.kptr_restrict: "1"
    ntpservers:
        - <http://0.suse.pool.ntp.org|0.suse.pool.ntp.org>
    dnsnameservers:
        - 192.168.8.2
        - 8.8.8.8
    wifi: []
    password: Pa22word
    environment: {}
    labels:
      <http://topology.kubernetes.io/zone|topology.kubernetes.io/zone>: zone1
    persistentstatepaths: []
    externalstorage:
        enabled: false
        multipathconfig: []
    additionalkernelarguments: ""
    ssh_authorized_keys:
        - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFJzDQSc2ckhjcf0HqDUJUbF3kdqwJtViW3o7SWSIbf9 clemenko@clempro.local
install:
    automatic: true
    skipchecks: true
    mode: create
    managementinterface:
        interfaces:
            - name: enp1s0
              hwaddr: ""
        method: static
        ip: 192.168.1.12
        subnetmask: 255.255.255.0
        gateway: 192.168.1.1
        defaultroute: true
        bondoptions:
            miimon: "100"
            mode: active-backup
        mtu: 0
        vlanid: 0
    vip: 192.168.1.14
    viphwaddr: ""
    vipmode: static
    clusterdns: ""
    clusterpodcidr: ""
    clusterservicecidr: ""
    forceefi: false
    device: /dev/nvme0n1
    configurl: ""
    silent: false
    isourl: <http://192.168.1.13/harvester/harvester-v1.6.1-amd64.iso>
    poweroff: false
    noformat: false
    debug: false
    tty: tty1
    forcegpt: true
    role: default
    withnetimages: false
    wipealldisks: true
    wipediskslist: []
    forcembr: false
    datadisk: ""
    webhooks: []
    addons:
    harvester_vm_import_controller:
      enabled: false
      values_content: ""
    harvester_pcidevices_controller:
      enabled: false
      values_content: ""
    rancher_monitoring:
      enabled: false
      values_content: ""
    rancher_logging:
      enabled: false
      values_content: ""
    harvester_seeder:
      enabled: false
      values_content: ""
    harvester:
        storage_class:
            replica_count: 1
        longhorn:
            defaultsettings:
                guaranteedEngineManagerCPU: 1
                guaranteedReplicaManagerCPU: 1
v
So if I read it right, I need to go get the /oem/harvester.config file, modify that, then reinstall the node with the replica_count value changed using that modified file?
t
do you have images or vms running? in theory yes. modify that file and reboot.
v
Two physical boxes, nothing running in them yet. I had read modifying the configuration file wouldn't change an installed system, but I will give it a try.
t
did you install from USB? or pxe? either way there is a http config url option where you can serve the config file to make this repeatable.
v
From ISO... I am made a config file, but it didn't import... Something on my end I got to sort I am guessing.
a
If you want to set this via on intallation stage, then the harvester_configuration file served on an http server is the answer. https://docs.harvesterhci.io/v1.6/install/harvester-configuration#installharvesterstorage_classreplica_count After the cluster is installed, you can still create custom storage-class with any replica count, and set the new storage-class as the default value, it works on all furture VMs. The only remaining point is the
rancher-monitoring
addon, which use the
harvester-longhorn
as the SC, you can also disabe the addon, and change the SC value.
v
I was over thinking what I needed for the storage-class... I got it addressed. Thank you.
👍 1