Skip to content

Instantly share code, notes, and snippets.

View kincl's full-sized avatar
:fishsticks:
#fishsticks

Jason Kincl kincl

:fishsticks:
#fishsticks
View GitHub Profile
@kincl
kincl / nmstate.yaml
Last active February 17, 2024 21:22
NMState Snippets
interfaces:
- name: bond0
type: bond
state: up
ipv4:
address:
- ip: 192.168.126.30
prefix-length: 24
dhcp: false
enabled: true
@kincl
kincl / deployment.yaml
Last active November 30, 2023 17:56
simple-deployment
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test
spec:
rules:
- host: ingress.example.org
http:
paths:
- path: /
@kincl
kincl / default-net.xml
Last active November 29, 2023 23:33
libvirt-for-ocp
<network xmlns:dnsmasq='http://libvirt.org/schemas/network/dnsmasq/1.0'>
<name>default</name>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:b1:dd:cf'/>
<domain name='redhat.lab' localOnly='yes'/>
@kincl
kincl / dnsmasq.conf
Last active November 28, 2023 21:59
dnsmasq config with upstream dns
dhcp-range=192.168.10.100,192.168.10.150
dhcp-option=option:router,192.168.10.3
dhcp-option=option:dns-server,192.168.10.3
log-dhcp
server=10.0.0.1 # upstream DNS
no-resolv
host-record=api.hattrick.redhat.com,192.168.10.98
host-record=api-int.hattrick.redhat.com,192.168.10.98
@kincl
kincl / 00-README.md
Last active October 3, 2023 12:36
manual-cloud-credential-operator-iam-policy

manual-cloud-credential-operator-iam-policy

This script will take a list of CredentialsRequest YAML files and output a combined IAM policy document

Usage

$ create_policy.py *.yaml
@kincl
kincl / disk-benchmarking.md
Last active September 26, 2023 20:39
disk benchmarking

Disk Benchmarking

IOzone

Option Documentation
-C Show bytes transferred by each child in throughput testing. Useful if your operating system has any starvation problems in file I/O or in process management.
-w Do not unlink temporary files when finished using them.
-c Include close() in the timing calculations. This is useful only if you suspect that close() is broken in the operating system currently under test. It can be useful for NFS Version 3 testing as well to help identify if the nfs3_commit is working well.
-e Include flush (fsync,fflush) in the timing calculations
@kincl
kincl / imageset-config-4.12.yaml
Last active April 17, 2024 14:01 — forked from johnsimcall/imageset-config.yaml
oc-mirror imageset-config.yaml for OpenShift Virtualization and OpenShift Data Foundations
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v1alpha2
storageConfig:
local:
path: ./
mirror:
platform:
channels:
@kincl
kincl / echo-headers.yaml
Created August 28, 2023 20:36
python-based echo headers for kubernetes
apiVersion: v1
kind: ConfigMap
metadata:
name: python-http
labels:
app: python-http
data:
app.py: |
from http.server import HTTPServer, BaseHTTPRequestHandler
@kincl
kincl / index.md
Last active August 15, 2023 12:42
Adding to existing ignition config with butane

step 1: get butane

Butane is a tool for converting our hand-written butane configuration into the "machine-read" ignition configuration.

Get butane from our OCP mirror

step 2: butane config

I pulled the chrony butane config from our docs

@kincl
kincl / openshift-nfs.txt
Last active July 26, 2022 16:26 — forked from johnsimcall/openshift-nfs.txt
Simplified NFS storage for OpenShift
git clone https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner.git
cd nfs-subdir-external-provisioner
sed -i.backup 's/nfs-client/nfs-storage/g' ./deploy/class.yaml
sed -i.backup 's/namespace:.*/namespace: nfs-storage/g' ./deploy/rbac.yaml
sed -i.backup 's/namespace:.*/namespace: nfs-storage/g' ./deploy/deployment.yaml
vi ./deploy/deployment.yaml
# Update NFS_SERVER and NFS_PATH values (4 edits required)