Skip to content

Instantly share code, notes, and snippets.

View eslutsky's full-sized avatar

Evgeny Slutsky eslutsky

View GitHub Profile

Why TopoLVM Privileged Containers Often Mount the Entire /dev, and Safer Workarounds

Running TopoLVM inside a privileged container frequently leads to mounting the entire /dev because TopoLVM depends on LVM2 and device-mapper, which create and update block device nodes dynamically under paths like /dev/mapper, /dev/dm-, and symlinks under /dev/disk/by-, and teams use privileged mode to broadly expose these updates inside the container for simplicity (RHEL LVM/Device-Mapper overview, Device Mapper + udev, Podman device access patterns).

Why “entire /dev” seems necessary

  • TopoLVM uses LVM/device-mapper, which materialize logical volumes as block devices under /dev/mapper and /dev/dm-
@eslutsky
eslutsky / README.md
Created July 16, 2024 14:56 — forked from adelton/README.md
OpenShift Console on MicroShift

OpenShift Console on MicroShift

On MicroShift 4.13 installed on RHEL 9.2 using Installing and configuring MicroShift clusters product documentation, OpenShift Console can be enabled on port :9000 by fetching the files from this gist and then running

# oc create serviceaccount -n kube-system openshift-console
# bash openshift-console.eval | oc create -f -

gnome-terminal --tab --profile=default --geometry=95x35+250+60

@eslutsky
eslutsky / refresh_templates.sh
Last active August 11, 2020 13:05
ocp-on-rhv-templates-refresh
#!/bin/bash
for i in {11..19}; do
cat <<__EOF__ >params.yaml
template_name: rhcos-master-$i
template_disk_size: 16GiB
template_memory: 16GiB
template_cpu: 8
nic_profile_name: ovn-vmnet-$i
@eslutsky
eslutsky / etcd_fio_perf.sh
Last active September 29, 2020 14:13 — forked from tuxfight3r/openshift_cli_tricks.MD
openshift cli tricks - using go templates
#!/bin/bash
#following this guide https://access.redhat.com/solutions/4885641
#recommended threshond 10msec - should be below that value
fio_sync_thresh=10000000
while [ 1 ] ; do
cd /var/lib
tempd=$(mktemp -d -p `pwd`)
pushd $tempd
@eslutsky
eslutsky / sampleREADME.md
Last active August 3, 2020 08:19 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductionsAA

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

#!/bin/bash
parentNIC=eth0
newNIC=macvlan0
macAddress=00:1a:4a:23:17:2d
# add new macvlan interface
ip link add dev $newNIC link $parentNIC type macvlan
# change mac address for the NIC
ip link set dev $newNIC address $macAddress