argo/bootstrap/cluster-resources/k8s-mgmt/machineregistration.elemental.yaml

56 lines
2.1 KiB
YAML

apiVersion: elemental.cattle.io/v1beta1
kind: MachineRegistration
metadata:
name: elemental-registration-1
namespace: fleet-default
# annotations: key: string
# labels: key: string
spec:
machineName: "s-${System Information/SKU Number}"
machineInventoryLabels:
elemental.cattle.io/manufacturer: "${System Information/Manufacturer}"
elemental.cattle.io/productName: "${System Information/Product Name}"
elemental.cattle.io/serialNumber: "${System Information/Serial Number}"
elemental.cattle.io/machineUUID: "${System Information/UUID}"
elemental.cattle.io/cpuTotalCores: "${System Data/CPU/TotalCores}"
elemental.cattle.io/cpuTotalThreads: "${System Data/CPU/TotalThreads}"
elemental.cattle.io/totalMemoryBytes: "${System Data/Memory/TotalPhysicalBytes}"
elemental.cattle.io/numDisks: "${System Data/Storage/TotalDisks}"
elemental.cattle.io/cpuFamily: "${System Data/Processor Information/Family}"
config:
cloud-config:
users:
- name: root
passwd: $6$rounds=4096$eiYhELdUc5UdA3uR$0PnKGqB6yE1eO9Y7VjcClgF0Ew.u4vuCWcXG/J9TXo6zEGht2zy74wzJ0/FTNuFwNeOOfsx2J3L1ENsdHTNFa1
- name: davad
passwd: "$6$rounds=4096$aGOOJFIH3nPaWmMD$d6qPla9cmX4kHIPLDK79QnQGUtipxHqWzuXfykWpVJLOy7vpcg8DqHhGS/C6qFKGjlQi1z9Jkj6Nwmd9ANcG61"
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAoxe01++NcPfnk5809M0mL+76Qn6CwPHCxpWX5yhepM david@tyr
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEqPa07VmSLavCX7+Mh9RhGjUu5q90FF4IA0U0k+Wj5Z davad@eir
elemental:
install:
device-selector:
- key: Name
operator: In
values:
- /dev/sda
- /dev/vda
- /dev/nvme0
- key: Size
operator: Gt
values:
- 25Gi
reboot: true
poweroff: false
eject-cd: true
snapshotter:
type: btrfs
reset:
enabled: true
reset-oem: true
reset-persistent: true
poweroff: false
reboot: true