Skip to content

Instantly share code, notes, and snippets.

View therevoman's full-sized avatar

Nate Revo therevoman

  • Red Hat, Inc
  • Utah
View GitHub Profile
@therevoman
therevoman / _INSTALL.md
Created March 10, 2021 04:53 — forked from robinsmidsrod/_INSTALL.md
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

@therevoman
therevoman / Wanhao_Cura_Profile16.ini
Created January 8, 2021 23:57 — forked from joshgerdes/Wanhao_Cura_Profile16.ini
Monoprice Maker Select Plus (Wanhao i3 Plus) Setup
[profile]
layer_height = 0.16
wall_thickness = 1.2
retraction_enable = True
solid_layer_thickness = 1.2
fill_density = 10
nozzle_size = 0.4
print_speed = 50
print_temperature = 200
print_temperature2 = 0
@therevoman
therevoman / dnsmasq.md
Created December 10, 2020 06:02 — forked from jlebon/dnsmasq.md
How to set up dnsmasq on an OpenShift cluster

This gist is mostly based on the dnsmasq appendix from the openshift-training repo. However, I updated it and included fixes for the many gotchas I found along the way.

This is useful for folks who want to set up a DNS service as part of the cluster itself, either because they cannot easily change their DNS setup outside of the cluster, or just because they want to keep the cluster setup self-contained.

@therevoman
therevoman / ocp-4.2-hugepages-1g.md
Created December 1, 2020 06:11 — forked from williamcaban/ocp-4.2-hugepages-1g.md
Configure 1G Hugepages in OpenShift 4.2

Configure 1G Hugepages in OpenShift 4.2

Update Node Kernel Parameters

Supporting 1G hugepages requires the Kernel to support 1G Hugepages. This is done by applying a boot Kernel parameter.

  • Create a MachineConfig (MC) to apply to the Node type that will be using the 1G hugepages. The following example set 1G hugepages for all worker nodes 50-kargs-1g-hugepages.yaml:
    apiVersion: machineconfiguration.openshift.io/v1
    

kind: MachineConfig

@therevoman
therevoman / Admin and Cluster Admin
Created December 1, 2020 06:11 — forked from williamcaban/Admin and Cluster Admin
OpenShift Quick Commands
# User privileges
# Add admin privileges to user in particular project
$ oc adm policy add-role-to-user admin <user> -n <project>
# Add cluster-admin privileges to user
$ oc adm policy add-cluster-role-to-user cluster-admin <user>
#Reference
https://docs.openshift.com/container-platform/latest/admin_guide/manage_rbac.html#managing-role-bindings

OCP 4.2/4.3 All-In-One (UPI mode)

This document assume reader is familiar with the OCP4x installation process.

Before Deployment

  • Setup the install-config.yaml to deploy a single master and no workers
    apiVersion: v1
    baseDomain: example.com
    
@therevoman
therevoman / OCP Release Information.md
Created December 1, 2020 06:10 — forked from williamcaban/OCP Release Information.md
OpenShift and OKD Releases
@therevoman
therevoman / pull-all-imagestreams.sh
Created December 1, 2020 06:10 — forked from williamcaban/pull-all-imagestreams.sh
Simple script to pull all images for the image streams
#!/bin/sh
IMAGES=`oc get is -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n openshift`
for i in ${IMAGES}; do
echo "Pulling: $i"
./oc import-image $i --all -n openshift
done

In some baremetal and private Cloud deployments we need to force masters nodes to sync clocks. This is required by etcd and for the validity of the installation certs.

Force time sync

sudo chronyc -a makestep

To force clock update (without stepped updates) /etc/chrony.conf