Skip to content

Instantly share code, notes, and snippets.

View waynedovey's full-sized avatar
🎯
Focusing

Wayne Dovey waynedovey

🎯
Focusing
View GitHub Profile
@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active October 7, 2024 05:41
My Openshift Cheatsheet

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
    
oc create clusterquota user-qa \
@p4tin
p4tin / README.md
Created November 30, 2018 16:18
Wordpress Kubernetes Cluster

Kubernetes Wordpress installation

Use minikube to test with

  • on macos: ** brew cask install minikube ** minikube start

Start the cluster and scale:

  • kubectl create secret generic mysql-pass --from-literal=password=YOUR_PASSWORD
@contentfree
contentfree / gist:45659ad8f500787cb247dbb0447be2e2
Last active April 20, 2020 12:41
COVID-19 OoC (Outside of China) Growth
// WHO Reports: https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports
// Inspired by: https://twitter.com/paulg/status/1235247452145451013
// Note: The growth rate does not seem sustainable.
// The projected OoC infections assumes a constant doubling of roughly every 4 days.
Date Projected-OoC-Infections WHO-Reported-OoC-Infections
2020-02-29 5,629 6,009
2020-03-01 6,755 7,169
2020-03-02 8,106 8,774
2020-03-03 9,727 10,565
2020-03-04 11,673 12,669
@carlosedp
carlosedp / ocp4-vsphere.md
Created March 27, 2020 13:59
Openshift 4 on VSphere Quick Guide

Openshift 4 vSphere Install

Pre-reqs

  1. Reserve one IP for Bootstrap Node
  2. Reserve three IPs for Control-Plane Nodes
  3. Reserve two or three IPs for Infra-Nodes
  4. Check if Control-plane Load-Balancer VIP points to four IPs (Bootstrap + Control-Plane nodes)
  5. Check if Infra-Node Load-Balancer VIP points to the Infra-Node IPs
  6. Check created DNS entries:

Using Sushy Tools with Libvirt

  • Add linux user to libvirt group
sudo usermod -a -G libvirt <your-user>
sudo -y install libvirt-devel gcc python3-devel
  • Login and validate user can execute virsh commands
@displague
displague / centos8-stream.ipxe
Last active May 27, 2021 13:34
CentOS 8 Stream via iPXE on Equinix Metal
#!ipxe
dhcp net0
# https://www.centos.org/download/mirrors/
set mirror http://mirror.pit.teraswitch.com
# x86_64, aarch_64, ppc64le
set arch x86_64
set path /centos/8-stream/BaseOS/x86_64/os
@jparrill
jparrill / egress-limit-ssh
Created November 10, 2021 11:07
Limit bandwidth SSH
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: egress-limit-ssh
spec:
config:
ignition:
version: 3.2.0