Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (39 loc) · 1.07 KB

MetalStackMachine.md

File metadata and controls

45 lines (39 loc) · 1.07 KB

MetalStackMachine

Resource that provides configuration for running machine on Metal Stack.

Usage example

apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MetalStackMachine
metadata:
  name: test1-hglxe-master-0
  namespace: default
spec:
  image: ubuntu-cloud-init-20.04
  machineType: v1-small-x86

After reconcilation:

apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MetalStackMachine
metadata:
  name: test1-hglxe-master-0
  namespace: default
spec:
  image: ubuntu-cloud-init-20.04
  machineType: v1-small-x86
  providerID: metalstack://e0ab02d2-27cd-5a5e-8efc-080ba80cf258
status:
  addresses:
    - address: 172.22.0.10
      type: InternalIP
  allocated: true
  ready: true

Fields

Required fields:

  • image: string - OS image name.
  • machineType: string - machine type(currently specifies only size).

Optional fields:

  • providerID: *string - ID of Metal Stack machine on which node should be deployed.
  • sshKeys: []string - public SSH keys for machine.
  • tags: []string - set of tags to add to Metal Stack machine.