Skip to content

Instantly share code, notes, and snippets.

View dwojciec's full-sized avatar

Didier Wojciechowski dwojciec

View GitHub Profile
@dwojciec
dwojciec / rhsm.log
Created November 9, 2017 08:01
/var/log/rhsm/rhsm.log file generated during subscription-manager during a 'minishift start' command
2017-10-24 03:30:49,648 [INFO] yum:22036:MainThread @connection.py:821 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2017-10-24 03:30:49,650 [INFO] yum:22036:MainThread @repolib.py:326 - repos updated: Repo updates
Total repo updates: 0
Updated
<NONE>
Added (new)
<NONE>
Deleted
<NONE>
@dwojciec
dwojciec / debug
Created November 9, 2017 08:59
result of minishift start --iso-url file://Users/dwojciec/bin/image/minishift.iso --skip-registration -v 5 --show-libmachine-logs
dwojciec-osx:build dwojciec$ minishift start --iso-url file://Users/dwojciec/bin/image/minishift.iso --skip-registration -v 5 --show-libmachine-logs
Found binary path at /usr/local/bin/docker-machine-driver-xhyve
Launching plugin server for driver xhyve
Plugin server listening at address 127.0.0.1:57599
() DBG | operation not supported by device
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minishift) Calling .GetState
@dwojciec
dwojciec / pv creation
Last active November 14, 2017 17:18
pv creation for openshift
on the bastion host :
* Create 100 directory exports as persistent volumes:
mkdir -p /var/export/pvs/pv{1..100}
chown -R nfsnobody:nfsnobody /var/export/pvs/
chmod -R 700 /var/export/pvs/
* add a line for each export directory to /et/exports
for volume in pv{1..100} ; do echo Creating export for volume $volume; echo "/var/export/pvs/${volume} 192.168.0.0/24(rw,sync,all_squash)" >> /etc/exports; done;
@dwojciec
dwojciec / Openshift 4.2 on VMware using govc
Created November 21, 2019 16:49 — forked from ralvares/Openshift 4.3 on VMware using govc
Openshift 4.2 on VMware using govc
curl https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.2/4.2.0/rhcos-4.2.0-x86_64-vmware.ova -o rhcos-4.2.0-x86_64-vmware.ova
govc import.ova -name=rhcos-4.2.0-x86_64-vmware ./rhcos-4.2.0-x86_64-vmware.ova
export GOVC_URL='vsphere.server.local
export GOVC_USERNAME='admin@vsphere.local'
export GOVC_PASSWORD='password
export GOVC_INSECURE=1
export GOVC_NETWORK='NETWORK'
@dwojciec
dwojciec / servicesNodePortRange update
Last active June 5, 2020 13:13
Openshift 4 - How to change the default value of servicesNodePortRange
$ oc project
Using project "openshift-kube-apiserver" on server "https://api.cluster-montpel-4ceb.montpel-4ceb.example.opentlc.com:6443".
$ oc edit kubeapiservers.operator.openshift.io/cluster
find /unsupportedConfigOverrides
and add this line servicesNodePortRange: 30000-32999 like :
```
storageConfig:
urls:
@dwojciec
dwojciec / gist:0fc143fc5135cbee3c43d319f662ce2e
Created June 9, 2020 16:57
ocp4-upgrade-checker.sh MACOSX
#!/usr/bin/env bash
set -o pipefail
set -o nounset
#GLOBAL STUFF
VERSION="2.4"
BIN="/bin"
BIN2="/usr/bin"
CHA=(stable fast) #array of channels
all:
children:
bootstrap:
hosts:
bootstrap.${CLUSTERID}.ho.fosltd.co.za:
dhcp: false
ipv4: ${BOOTSTRAP_IP}
master:
hosts:
@dwojciec
dwojciec / quay all in one
Created July 5, 2021 10:48 — forked from ralvares/quay all in one
Quay - All in One - Using podman pod
podman login registry.redhat.io
export domain=quay.ralvares.local
export QUAY=/data/quay
mkdir -p $QUAY/postgres-quay
mkdir $QUAY/clair
mkdir -p $QUAY/config/extra_ca_certs
mkdir $QUAY/storage