Skip to content

Instantly share code, notes, and snippets.

View ironcladlou's full-sized avatar

Dan Mace ironcladlou

  • Red Hat
  • North Carolina
View GitHub Profile
@ironcladlou
ironcladlou / monitoring-devel.md
Last active April 26, 2018 15:02
OpenShift Monitoring Development

Monitoring platform development

To launch a cluster with the the monitoring platform installed, set up a GCE cluster using its instructions, and enable the monitoring platform before bringing up your cluster by adding gcp-dev/myvars.yaml:

openshift_monitoring_deploy: true
# openshift_cluster_monitoring_operator_image: quay.io/dmace/cluster-monitoring-operator:7c7e214

# openshift_cluster_monitoring_operator_alertmanager_config: |+
#   global:
---
- hosts: localhost
connection: local
tasks:
- name: place all scale groups into Ansible groups
include_role:
name: openshift_gcp
tasks_from: setup_scale_group_facts.yml
- import_playbook: ../init/main.yml
@ironcladlou
ironcladlou / zz_vars.yaml
Created August 20, 2018 20:45
Cluster Ingress Operator test environment
openshift_gcp_node_group_config:
- name: master
suffix: m
tags: ocp-master,ocp-node
machine_type: n1-standard-1
boot_disk_size: 150
scale: 1
bootstrap: true
wait_for_stable: true
- name: infra
@ironcladlou
ironcladlou / local-release.sh
Last active October 15, 2018 14:33
Testing cluster-dns-operator without CVO
#/bin/bash
set -euo pipefail
# usage: local-release.sh <repo>
# Tags a new image from local working tree, makes a temporary commit,
# pushes it to $repo, builds a temporary set of manifests replacing the
# deployment with the $repo pullspec.
REPO="$1"
@ironcladlou
ironcladlou / local-release.sh
Last active October 16, 2018 18:10
Testing cluster-ingress-operator without CVO
#/bin/bash
set -euo pipefail
REPO="$1"
if [ -z "$REPO" ]; then
echo "usage: local-release.sh <repo>"
exit 1
fi
@ironcladlou
ironcladlou / Vagrantfile
Last active May 22, 2019 07:58
OpenShift 4.0 Installer on macOS
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "generic/fedora28"
config.vm.network "public_network"
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.provider "vmware_desktop" do |v|
v.ssh_info_public = true
v.vmx["numvcpus"] = "2"
@ironcladlou
ironcladlou / create-libvirt.sh
Created November 1, 2018 11:43
OpenShift 4.0 installer on GCP
#/bin/bash
NAME="$1"
if [ -z "$NAME" ]; then
echo "usage: create-libvirt.sh <name>"
exit 1
fi
CLUSTER_DIR="$HOME/clusters/${NAME}"
if [ -d "$CLUSTER_DIR" ]; then
pico-8 cartridge // http://www.pico-8.com
version 18
__lua__
-- global
debug={
enabled=true,
show={
data=false,
timers=true,
#!/bin/bash
set -euo pipefail
function show_login_help {
cat << EOF
Log in at https://api.ci.openshift.org/oauth/token/request and try again.
EOF
exit 1
}
package main
import (
"os"
"fmt"
"net/http"
"net/url"
)
/*