Skip to content

Instantly share code, notes, and snippets.

View vxav's full-sized avatar

Xavier vxav

View GitHub Profile
# openssl genrsa -out sa.key 2048
# openssl rsa -in sa.key -pubout -out sa.pub

export RESOURCE_GROUP="glean"
export LOCATION="westeurope"
export AZURE_STORAGE_ACCOUNT="oidcissuer$(openssl rand -hex 4)"
export AZURE_STORAGE_CONTAINER="oidc-test"

# Create Azure blob storage and account
@vxav
vxav / baremetal.md
Last active February 18, 2025 14:31
Ironic / metal3 / bmo

Bare metal servers have different BMCs with different redfish feature sets.

Metal3 relies on Ironic to integrate with the BMC via Redfish.

We can check that a server is compliant with the Ironic feature set using Redfish-Interop-Validator.

  • Install the Redfish-Interop-Validator tool
pip install redfish_interop_validator
@vxav
vxav / upgrade_gitops_wcs_to_v27.md
Last active December 4, 2024 12:24
Upgrade Gitops WCs to v27

Step 1

  1. In <wc>/mapi/clusters/kustomization.yaml:
resources:
  - ../../../../../../../../bases/cluster
  - ../../../../../../../../bases/apps/default_step1
  1. In staging.yaml > Update default_apps_release to 0.11.0.

Bill of materials

  • ESP8266 - 2.32€: Controller
  • ADS1115 - 1,92€: ADC board to have more analog input and better resolution.
  • pH Sensor and circuit board:
  • [DFRobot ph sensor kit](https://www.df

Ignition logs

journalctl --identifier=ignition --all

Query metadata

/usr/share/oem/bin/vmtoolsd --cmd "info-get guestinfo.ignition.config.data" | base64 -d

Running Kubernetes 1.24 with CAPVCD.

❗ This is tested with Vanilla Kubernetes nodes, it may not work with Tanzu.

Image-builder

  • Clone the image-builder repo.
  • Edit images/capi/ansible/node.yml
  • Add the following tasks at the end (e.g. before the sysprep section)