Skip to content

Instantly share code, notes, and snippets.

View vxav's full-sized avatar

Xavier vxav

View GitHub Profile

Overview

Kamaji allows to run control plane components in pods in the MC rather than dedicating nodes in the WC (doc).

image

Kamaji world

Those pods are controlled through tenantcontrolplanes.kamaji.clastix.io CRs which are reconciled by the kamaji controller.

@vxav
vxav / kubeedge-talk.md
Last active September 1, 2025 06:59
kubeedge-talk

1. Docker via GS VPN

If running Kind in a VM accessible via GS VPN (e.g. Neoedge), you must change the docker bridge network or it will set it to 172.18.0.0 which conflicts with our Gridscale VPN endpoint.

Set this in /etc/docker/daemon.json

{
  "default-address-pools":[
    {"base":"10.253.0.0/16","size":24}
# 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)