Skip to content

Instantly share code, notes, and snippets.

View mulbc's full-sized avatar

Chris Blum mulbc

  • IBM
  • Berlin, Germany
  • 00:08 (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
@mulbc
mulbc / Dashboard.ndjson
Created May 22, 2024 09:44
Benchmark Operator Quickstart
{"attributes":{"controlGroupInput":{"chainingSystem":"HIERARCHICAL","controlStyle":"oneLine","ignoreParentSettingsJSON":"{\"ignoreFilters\":false,\"ignoreQuery\":false,\"ignoreTimerange\":false,\"ignoreValidations\":false}","panelsJSON":"{\"d7d2004e-1671-469a-b55c-fb2e15508039\":{\"type\":\"optionsListControl\",\"order\":0,\"grow\":true,\"width\":\"medium\",\"explicitInput\":{\"id\":\"d7d2004e-1671-469a-b55c-fb2e15508039\",\"fieldName\":\"uuid.keyword\",\"title\":\"uuid.keyword\",\"grow\":true,\"width\":\"medium\",\"searchTechnique\":\"prefix\",\"selectedOptions\":[],\"enhancements\":{}}}}"},"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[]}"},"optionsJSON":"{\"useMargins\":true,\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"hidePanelTitles\":false}","panelsJSON":"[{\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":0,\"w\":24,\"h\":15,\"i\":\"31f5df88-8275-4508-a5b2-b3d1a2dffe1f\"},\"panelIndex\":\"31f5df88-8275-4508-a