Skip to content

Instantly share code, notes, and snippets.

View dudash's full-sized avatar
🎸
Be excellent to each other

Jason Dudash dudash

🎸
Be excellent to each other
View GitHub Profile
@dudash
dudash / rosetta-aliases
Created January 8, 2021 01:11
Rosetta M1 Mac Configs
alias brew='arch -x86_64 brew'
@dudash
dudash / assemble
Created December 4, 2020 20:11
override Red Hat node.js 12 s2i to make npm verbose
#!/bin/bash
# Prevent running assemble in builders different than official STI image.
# The official nodejs:8-onbuild already run npm install and use different
# application folder.
[ -d "/usr/src/app" ] && exit 0
set -e
# FIXME: Linking of global modules is disabled for now as it causes npm failures
@dudash
dudash / kubectl-select
Last active April 13, 2021 20:46
Flip between versions of the Kubernetes CLI easily
#!/bin/bash
# Simple script to help configuring which kubectl CLI to use when you
# have a need to keep multiple versions and switch between them.
# Install and notes:
# 1. put this in /usr/local/bin and chmod +x
# 2. keep all the versions of kubectl in the /Applications directory
# 3. name kubectl executables with corresponding version - e.g. /Applications/kubectl-1.19.0
@dudash
dudash / oc-select
Last active March 18, 2021 20:24
Flip between versions of the OpenShift CLI easily
#!/bin/bash
# Simple script to help configuring which oc CLI to use when you
# have a need to keep multiple versions and switch between them.
# Install and notes:
# 1. put this in /usr/local/bin and chmod +x
# 2. keep all the versions of oc in the /Applications directory
# 3. name oc executables with corresponding version - e.g. /Applications/oc-4.5.0
@dudash
dudash / kn-select
Last active April 13, 2021 20:46
Flip between versions of the Knative CLI easily
#!/bin/bash
# Simple script to help configuring which kn CLI to use when you
# have a need to keep multiple versions and switch between them.
# Install and notes:
# 1. put this in /usr/local/bin and chmod +x
# 2. keep all the versions of kn in the /Applications directory
# 3. name kn executables with corresponding version - e.g. /Applications/kn-0.14.0
@dudash
dudash / kn_resources.sh
Last active September 21, 2020 23:25
List Knative API resources
#!/bin/bash
echo "Here are all the knative related API resources"
oc api-resources --api-group ignore.me;oc api-resources | grep knative
#oc api-resources --api-group serving.knative.dev
#oc api-resources --api-group eventing.knative.dev
# kubeps1 custom config (on off with kubeon and kubeoff)
# https://github.com/jonmosco/kube-ps1
source "/usr/local/opt/kube-ps1/share/kube-ps1.sh"
function get_cluster_short() {
echo "$1" | cut -d / -f2 | cut -d : -f1
}
KUBE_PS1_BINARY=oc
KUBE_PS1_CLUSTER_FUNCTION=get_cluster_short
PS1='$(kube_ps1)'$PS1
#!/bin/bash
# Loops to create an igress for each in the list
declare -a servicenames=(
# ===== Put all the services you want exposed here =====
"confluence"
"gitlab"
"jira"
"keycloak"
"mattermost"
# Resources for AddonComponents grafana component
apiVersion: v1
kind: ConfigMap
metadata:
name: istio-grafana-configuration-dashboards-citadel-dashboard
namespace: istio-system
labels:
app: grafana
release: istio

How to install

run this

  • ./openshift-install create cluster --dir=. --log-level=info

to destroy

  • ./openshift-install destroy cluster
  • mv terraform.tfstate old-terraform.tfstate-MM-DD-YY

Setup Istio