Skip to content

Instantly share code, notes, and snippets.

View relyt0925's full-sized avatar

Tyler Lisowski relyt0925

View GitHub Profile
@relyt0925
relyt0925 / provision_ubuntu2004_qemu_macosx.sh
Created May 14, 2020 04:50
Provisions a Ubuntu 20.04 VM in QEMU on Mac OSX using Cloud-Init
#!/usr/bin/env bash
#Install brew and qemu + cloud init metadata dependencies
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install qemu
brew install cdrtools
rm -rf /tmp/ubuntuqemuboot
#download Ubuntu 20.04 Cloud Image and resize to 30 Gigs
mkdir -p /tmp/ubuntuqemuboot/images
#!/usr/bin/env bash
#Install brew and qemu dependencies
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install qemu
brew install jq
rm -rf /tmp/fedoracoreosqemu
#Download Fedora CoreOS Image and resize primary disk to 30G
mkdir -p /tmp/fedoracoreosqemu/image
@relyt0925
relyt0925 / provision_redhatcoreos_qemu_macosx.sh
Created July 29, 2020 04:36
provision_redhatcoreos_qemu_macosx.sh
#!/usr/bin/env bash
#Install brew and qemu dependencies
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install qemu
brew install jq
rm -rf /tmp/rhcosqemu
#Download RedHat CoreOS Image and resize primary disk to 30G
mkdir -p /tmp/rhcosqemu/image
apiVersion: v1
kind: ConfigMap
metadata:
name: registry-configurator
data:
configure.sh: |
#!/usr/bin/env bash
set -x
#NOTE: based off ubi-minimal can be changed
microdnf install util-linux -y
apiVersion: v1
kind: ConfigMap
metadata:
name: registry-configurator
data:
configure.sh: |
#!/usr/bin/env bash
set -x
#NOTE: based off ubi-minimal can be changed
microdnf install util-linux -y
@relyt0925
relyt0925 / test-private-registry-pull-ds.yaml
Last active April 27, 2021 02:21
test-private-registry-pull-ds.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: test-private-registry-pull-ds
spec:
selector:
matchLabels:
name: test-private-registry-pull-ds
template:
metadata:
@relyt0925
relyt0925 / my-on-prem-application-17146-customdns-entry.yaml
Last active June 6, 2022 03:34
my-on-prem-application-17146-customdns-entry.yaml
apiVersion: v1
kind: Namespace
metadata:
name: custom-dns
---
apiVersion: v1
kind: Service
metadata:
name: my-on-prem-application-17146
namespace: custom-dns
apiVersion: v1
kind: List
metadata:
name: custom-dns
items:
- apiVersion: v1
kind: Namespace
metadata:
name: custom-dns
- apiVersion: v1
apiVersion: operator.openshift.io/v1
kind: DNS
metadata:
name: default
spec:
nodePlacement: {}
servers:
- forwardPlugin:
upstreams:
- 172.21.53.31
APISERVER_ENDPOINT=https://c100-e.us-east.containers.cloud.ibm.com:31581
cat <<EOF >/tmp/sre-csr.json
{
"CN": "myorg-sre-1",
"hosts": [
],
"key": {
"algo": "rsa",
"size": 2048
},