Skip to content

Instantly share code, notes, and snippets.

@scollier
scollier / release.md
Last active August 16, 2018 01:52 — forked from jcpowermac/a_release.md
release

Using OpenShift Release with alternative GCP account

There are a few preq to be done before running make:

  • Clone openshift/release and openshift/shared-secrets
  • Create a new service account
  • Create a new subdomain that GCE will manage
  • Modify gcp-dev/vars.yml

Recovering ETCD

Creating a RW single node cluster: On the etcd node that you did not remove from the cluster, stop all etcd services:

# systemctl stop etcd.service

Add the following line to the etcd.conf file

#!/bin/bash -x
OC_DIR=/root/openshift.local.clusterup
if [ -d $OC_DIR ];
then
oc cluster down
for i in `mount | grep -i openshift | awk '{ print $3 }'`; do
umount $i;
done
@scollier
scollier / cinder-k8s-deploy.adoc
Last active March 13, 2018 20:56
cinder-k8s-deploy

This demo describes how to attach cinder running on top of k8s to an existing external ceph cluster. At the end, you will have a Cinder deployment without authorization enabled.

deploy kubernetes here.

deploy kubevirt here.

Pre-requisites:

You must have name resolution to the node that will be running the mariadb server.

@scollier
scollier / Burst-from-onprem-osp-to-aws-gluster
Last active August 30, 2016 20:51
Burst-from-onprem-osp-to-aws-gluster
Prerequisites:
Functioning DNS
Functioning OpenStack environment
Functioning AWS environment
Proper permissions
On premise OpenShift on OpenStack environment:
1 Infrastructure node
@scollier
scollier / awscli-demo
Last active May 3, 2016 02:03
demo-awscli-5-3-2016
AWSCLI Demo 5-3-2016
Start demo by showing empty AWS console.
Deploy the environment with the script. Use /bin/time to show that in 5 1/2 minutes, you have OpenShift infrastructure set up.
Start presentation.
Environment:
#!/bin/bash
# Set the variables for date, and argument
DATE=$(date +"%m_%d_%Y-%M")
INPUT="$1"
# Grab the password for RHEV-M, don't report it to std out.
echo
echo "Please provide the RHEVM password, password is not echoed out to stdout, enter password and press Enter."
read -p "Enter Password:" -s RHEVM_PASSWORD
@scollier
scollier / atomic-deploy-demo-summit
Last active August 29, 2015 14:21
Atomic-Deploy-Demo-Summit
Red Hat Summit Atomic Host Deploy on RHEV Demo
Environment:
3 Atomic hosts
* node-1.rha
* node-2.rha
* node-3.rha
** The nodes will have a populated /etc/hosts file with the other nodes entered
** The nodes will have 2GB of memory each
@scollier
scollier / cockpit-ws
Created May 14, 2015 00:00
Cockpit-WS Demo
test
@scollier
scollier / container_best_practices
Last active August 29, 2015 14:20
Container Best Practices Video
Script for container best practices contribution video.
Set up the environment:
Have the chrome browser showing 3 pre-configured tabs: github, asciidoc reference, docker registry showing container.
Open a terminal to a clean Fedora 21 host.
Start covering the material: