Skip to content

Instantly share code, notes, and snippets.

View mulbc's full-sized avatar

Chris Blum mulbc

  • IBM
  • Berlin, Germany
  • 00:50 (UTC +02:00)
View GitHub Profile
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: disk-gatherer
namespace: default
labels:
k8s-app: disk-gatherer
spec:
selector:
@mulbc
mulbc / vmware-odf-machineset
Last active May 18, 2022 10:46
Creates a machineset for ODF based on an existing machineset (only for VMWARE IPI)
#!/bin/bash
MACHINESET=$(oc get -n openshift-machine-api machinesets -o name | grep -v ocs | head -n1)
oc get -n openshift-machine-api "$MACHINESET" -o json | jq '
del( .metadata.uid, .metadata.managedFields, .metadata.selfLink, .metadata.resourceVersion, .metadata.creationTimestamp, .metadata.generation, .status) |
(.metadata.name, .spec.selector.matchLabels["machine.openshift.io/cluster-api-machineset"], .spec.template.metadata.labels["machine.openshift.io/cluster-api-machineset"]) |= sub("worker";"ocs") |
(.spec.template.spec.providerSpec.value.numCPUs) |= 16 |
@mulbc
mulbc / state.json
Last active October 4, 2021 09:32 — forked from dobbythebot/state.json
{
"ocs": {
"flashSize": 2.5,
"usableCapacity": 10,
"deploymentType": "internal",
"nvmeTuning": false,
"cephFSActive": true,
"nooBaaActive": true,
"rgwActive": false,
"dedicatedMachines": []
@mulbc
mulbc / all.yml
Last active October 11, 2023 16:38
EBPF IO latency histogram with IO size buckets
kind: Namespace
apiVersion: v1
metadata:
name: ebpf-exporter
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: ebpf-exporter-robot
namespace: ebpf-exporter