Skip to content

Instantly share code, notes, and snippets.

View emosbaugh's full-sized avatar

Ethan Mosbaugh emosbaugh

View GitHub Profile
@emosbaugh
emosbaugh / cmx-openshift-web-console.md
Created February 1, 2024 23:01
CMX: Accessing the Openshift Web Console
  1. Add the following to your /etc/hosts file on your local computer.

    127.0.0.1 oauth-openshift.apps.cmx.repl-openshift.build
    127.0.0.1 console-openshift-console.apps.cmx.repl-openshift.build
    127.0.0.1 downloads-openshift-console.apps.cmx.repl-openshift.build
    127.0.0.1 canary-openshift-ingress-canary.apps.cmx.repl-openshift.build
    
  2. Port forward on 443 the ingress router service

#!/bin/bash
set -e
# prepare system
sudo modprobe br_netfilter
echo "net.bridge.bridge-nf-call-iptables = 1" | sudo tee -a /etc/sysctl.conf > /dev/null
echo "net.ipv4.ip_forward = 1" | sudo tee -a /etc/sysctl.conf > /dev/null
sudo sysctl -p /etc/sysctl.conf
@emosbaugh
emosbaugh / repro.sh
Created November 3, 2022 20:02
Pod that mounts longhorn pvc gets stuck in terminating state
#!/bin/bash
set -euo pipefail
# containerd
# https://docs.docker.com/engine/install/debian/
sudo apt-get remove docker docker-engine docker.io containerd runc || true
sudo apt-get update
@emosbaugh
emosbaugh / rook.diff
Last active October 12, 2022 18:05
Rook 1.9.12 diff
diff -r '--exclude=crds.yaml' '--exclude=*rbac.yaml' '--exclude=*role*.yaml' '--exclude=serviceaccount.yaml' ../1.8.10/Manifest ../1.9.12/Manifest
5,12c5,13
< image rook-ceph rook/ceph:v1.8.10
< image ceph-ceph quay.io/ceph/ceph:v16.2.9
< image cephcsi-cephcsi quay.io/cephcsi/cephcsi:v3.5.1
< image sig-storage-csi-node-driver-registrar k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0
< image sig-storage-csi-resizer k8s.gcr.io/sig-storage/csi-resizer:v1.4.0
< image sig-storage-csi-provisioner k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0
< image sig-storage-csi-snapshotter k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1
< image sig-storage-csi-attacher k8s.gcr.io/sig-storage/csi-attacher:v3.4.0
@emosbaugh
emosbaugh / external.diff
Created October 6, 2022 20:49
diff kots 1.86.1 internal and external addons
$ diff -r internal/ external/
diff -r internal/addons/kotsadm/1.86.1/deployment/kotsadm-deployment.yaml external/addons/kotsadm/1.86.1/deployment/kotsadm-deployment.yaml
46c46
< - image: kotsadm/kotsadm:v1.86.1
---
> - image: docker.io/kotsadm/kotsadm:v1.86.1
156c156
< image: kotsadm/kotsadm-migrations:v1.86.1
---
> image: docker.io/kotsadm/kotsadm-migrations:v1.86.1
@emosbaugh
emosbaugh / rook.diff
Last active October 7, 2022 23:00
diff -r --exclude=crds.yaml --exclude=*rbac.yaml --exclude=*role*.yaml --exclude=serviceaccount.yaml addons/rook/1.7.11/ addons/rook/1.8.10/
diff -r '--exclude=crds.yaml' '--exclude=*rbac.yaml' '--exclude=*role*.yaml' '--exclude=serviceaccount.yaml' addons/rook/1.7.11/Manifest addons/rook/1.8.10/Manifest
5,13c5,14
< image rook-ceph rook/ceph:v1.7.11
< image ceph-ceph quay.io/ceph/ceph:v16.2.6
< image cephcsi-cephcsi quay.io/cephcsi/cephcsi:v3.4.0
< image sig-storage-csi-node-driver-registrar k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.3.0
< image sig-storage-csi-resizer k8s.gcr.io/sig-storage/csi-resizer:v1.3.0
< image sig-storage-csi-provisioner k8s.gcr.io/sig-storage/csi-provisioner:v3.0.0
< image sig-storage-csi-snapshotter k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0
< image sig-storage-csi-attacher k8s.gcr.io/sig-storage/csi-attacher:v3.3.0
@emosbaugh
emosbaugh / rook-1.8.diff
Created September 30, 2022 15:52
diff -r '--exclude=crds.yaml' addons/rook/1.7.11/Manifest addons/rook/1.8.10/Manifest
5,13c5,14
< image rook-ceph rook/ceph:v1.7.11
< image ceph-ceph quay.io/ceph/ceph:v16.2.6
< image cephcsi-cephcsi quay.io/cephcsi/cephcsi:v3.4.0
< image sig-storage-csi-node-driver-registrar k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.3.0
< image sig-storage-csi-resizer k8s.gcr.io/sig-storage/csi-resizer:v1.3.0
< image sig-storage-csi-provisioner k8s.gcr.io/sig-storage/csi-provisioner:v3.0.0
< image sig-storage-csi-snapshotter k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0
< image sig-storage-csi-attacher k8s.gcr.io/sig-storage/csi-attacher:v3.3.0
< image csiaddons-volumereplication-operator quay.io/csiaddons/volumereplication-operator:v0.1.0
@emosbaugh
emosbaugh / kots-troubleshoot-usage.md
Created September 14, 2022 03:59
KOTS Troubleshoot Usage
@emosbaugh
emosbaugh / opsgenie.vcf
Created July 1, 2021 16:10
Opsgenie.vcf
BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//macOS 11.4//EN
N:;Opsgenie;;;
TEL;type=pref:+1 (202) 851-8605
TEL:+1 (256) 568-6080
TEL:+12565686081
TEL:+1 (256) 568-6082
TEL:+12565686083
TEL:+1 (256) 568-6084