github.com/rancher/elemental/tests@v0.0.0-20240517125144-ae048c615b3f/manifests/elemental-dev-example.yaml (about)

     1  apiVersion: elemental.cattle.io/v1beta1
     2  kind: MachineInventorySelectorTemplate
     3  metadata:
     4    name: fire-machine-selector
     5    namespace: fleet-default
     6  spec:
     7    template:
     8      spec:
     9        selector:
    10          matchExpressions:
    11            - key: element
    12              operator: In
    13              values: [ 'fire' ]
    14  ---
    15  kind: Cluster
    16  apiVersion: provisioning.cattle.io/v1
    17  metadata:
    18    name: volcano
    19    namespace: fleet-default
    20  spec:
    21    rkeConfig:
    22      machineGlobalConfig:
    23        etcd-expose-metrics: false
    24        profile: null
    25      machinePools:
    26        - controlPlaneRole: true
    27          etcdRole: true
    28          machineConfigRef:
    29            apiVersion: elemental.cattle.io/v1beta1
    30            kind: MachineInventorySelectorTemplate
    31            name: fire-machine-selector
    32          name: fire-pool
    33          quantity: 1
    34          unhealthyNodeTimeout: 0s
    35          workerRole: true
    36      machineSelectorConfig:
    37        - config:
    38            protect-kernel-defaults: false
    39      registries: 
    40        mirrors:
    41          "172.18.0.2:30000":
    42            endpoint:
    43              - "http://172.18.0.2:30000"
    44        configs:
    45          "172.18.0.2:30000":
    46            insecureSkipVerify: true    
    47    kubernetesVersion: v1.27.8+k3s2
    48  ---
    49  apiVersion: elemental.cattle.io/v1beta1
    50  kind: MachineRegistration
    51  metadata:
    52    name: fire-nodes
    53    namespace: fleet-default
    54  spec:
    55    machineName: test-btrfs-${System Information/UUID}
    56    config:
    57      cloud-config:
    58        users:
    59          - name: root
    60            passwd: root
    61      elemental:
    62        reset:
    63          debug: true
    64          enabled: true
    65          reset-persistent: true
    66          reset-oem: true
    67        install:
    68          snapshotter:
    69            type: btrfs
    70          reboot: true
    71          device-selector:
    72          - key: Name
    73            operator: In
    74            values:
    75            - /dev/sda
    76            - /dev/vda
    77            - /dev/nvme0
    78          debug: true
    79    machineInventoryLabels:
    80      element: fire
    81      manufacturer: "${System Information/Manufacturer}"
    82      productName: "${System Information/Product Name}"
    83      serialNumber: "${System Information/Serial Number}"
    84      machineUUID: "${System Information/UUID}"
    85  ---
    86  apiVersion: elemental.cattle.io/v1beta1
    87  kind: SeedImage
    88  metadata:
    89    name: fire-img
    90    namespace: fleet-default
    91  spec:
    92    type: iso
    93    baseImage: docker.io/local/elemental-iso:dev
    94    registrationRef:
    95      apiVersion: elemental.cattle.io/v1beta1
    96      kind: MachineRegistration
    97      name: fire-nodes
    98      namespace: fleet-default
    99  ---
   100  apiVersion: elemental.cattle.io/v1beta1
   101  kind: MachineRegistration
   102  metadata:
   103    name: fire-nodes-loopdevice
   104    namespace: fleet-default
   105  spec:
   106    machineName: test-loopdev-${System Information/UUID}
   107    config:
   108      cloud-config:
   109        users:
   110          - name: root
   111            passwd: root
   112      elemental:
   113        reset:
   114          debug: true
   115          enabled: true
   116          reset-persistent: true
   117          reset-oem: true
   118        install:
   119          snapshotter:
   120            type: loopdevice
   121          reboot: true
   122          device-selector:
   123          - key: Name
   124            operator: In
   125            values:
   126            - /dev/sda
   127            - /dev/vda
   128            - /dev/nvme0
   129          debug: true
   130    machineInventoryLabels:
   131      element: fire
   132      manufacturer: "${System Information/Manufacturer}"
   133      productName: "${System Information/Product Name}"
   134      serialNumber: "${System Information/Serial Number}"
   135      machineUUID: "${System Information/UUID}"
   136  ---
   137  apiVersion: elemental.cattle.io/v1beta1
   138  kind: SeedImage
   139  metadata:
   140    name: fire-img-loopdevice
   141    namespace: fleet-default
   142  spec:
   143    type: iso
   144    baseImage: docker.io/local/elemental-iso:dev
   145    registrationRef:
   146      apiVersion: elemental.cattle.io/v1beta1
   147      kind: MachineRegistration
   148      name: fire-nodes-loopdevice
   149      namespace: fleet-default