Skip to content

Instantly share code, notes, and snippets.

@rgl
Last active July 16, 2021 08:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rgl/4e21553a305984adc253a857a948ed88 to your computer and use it in GitHub Desktop.
root@pandora:~# kubectl get servers -o yaml
apiVersion: v1
items:
- apiVersion: metal.sidero.dev/v1alpha1
  kind: Server
  metadata:
    creationTimestamp: "2021-07-16T05:05:21Z"
    finalizers:
    - storage.finalizers.server.k8s.io
    generation: 6
    name: 00000000-0000-4000-8000-080027000000
    resourceVersion: "45147"
    uid: ec8ce2f2-5b87-4038-987a-1a8691c1cc9b
  spec:
    accepted: true
    configPatches:
    - op: replace
      path: /machine/install
      value:
        disk: /dev/vda
        extraKernelArgs:
        - ipv6.disable=1
    cpu:
      manufacturer: QEMU
      version: pc-i440fx-focal
    hostname: cp1
    system:
      family: Unknown
      manufacturer: your vendor name here
      productName: your product name here
      serialNumber: your product serial number here
      skuNumber: your product SKU here
      version: your product version here
  status:
    addresses:
    - address: 10.3.0.100
      type: InternalIP
    conditions:
    - lastTransitionTime: "2021-07-16T07:28:00Z"
      status: "True"
      type: PowerCycle
    isClean: true
    power: "on"
    ready: true
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

root@pandora:~# wget "http://$control_plane_ip/configdata?uuid=$server_uuid"
--2021-07-16 09:04:26--  http://10.3.0.2/configdata?uuid=00000000-0000-4000-8000-080027000000
Connecting to 10.3.0.2:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-07-16 09:04:26 ERROR 404: Not Found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment