Skip to content

Instantly share code, notes, and snippets.

View praveenkumar's full-sized avatar
🏠
Working from home

Praveen Kumar praveenkumar

🏠
Working from home
View GitHub Profile
@praveenkumar
praveenkumar / InstallerDebugLog
Created November 14, 2018 12:57
Debug log for installer run
17:34 $ bin/openshift-install create cluster --dir test --log-level debug
DEBUG Fetching "Terraform Variables"...
DEBUG Fetching dependencies of "Terraform Variables"...
DEBUG Fetching "Install Config"...
DEBUG Fetching dependencies of "Install Config"...
DEBUG Fetching "Cluster ID"...
DEBUG Generating "Cluster ID"...
DEBUG Fetching "Email Address"...
DEBUG Generating "Email Address"...
DEBUG Fetching "Password"...
@praveenkumar
praveenkumar / content.sh
Created November 13, 2018 08:09
Mount the RHCOS image and copy content.
[prkumar@local image]$ pwd
/home/prkumar/.cache/openshift-install/libvirt/image
[prkumar@local image]$ ll
total 8429340
-r--r--r--. 1 prkumar prkumar 1762721792 Nov 12 12:02 5d9e7ad6af87c256f0729ba0b8fcab21
-r--r--r--. 1 prkumar prkumar 1760821248 Nov 1 12:01 7722a0531a376a927e7dbd7fac58b2c9
-r--r--r--. 1 prkumar prkumar 1673003264 Oct 22 11:49 b94474a2755fe45df7bd856789d830c9
-r--r--r--. 1 prkumar prkumar 1762000896 Nov 9 10:25 c9fc84b57c827093733a9c77baabf94b
-r--r--r--. 1 prkumar prkumar 1673068800 Oct 18 13:53 de7ed838459359368283c7926c81dd73
@praveenkumar
praveenkumar / InstallerMasterNodeDump
Created November 9, 2018 08:46
Installer master node start => stop => start
[core@test1-master-0 ~]$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system etcd-member-test1-master-0 1/1 Running 0 1h
kube-system kube-flannel-8jq4j 2/2 Running 2 1h
kube-system kube-flannel-qmn2c 2/2 Running 0 1h
kube-system kube-proxy-jdzzz 1/1 Running 0 1h
kube-system kube-proxy-mfstb 1/1 Running 0 1h
kube-system kube-scheduler-qgbm4
@praveenkumar
praveenkumar / installerDump
Created October 18, 2018 10:42
Openshift Installer dump
Resources
---------
bootstrap: 16GB HDD/2 CPUS/2GB Memory
master: 16GB HDD/2 CPUS/3GB Memory
test1-worker: unknown HDD/2 CPUS/2GB Memory
Time-Taken (on office-network)
------------------------------
@praveenkumar
praveenkumar / okd-3.11
Last active October 4, 2018 20:35
try out okd 3.11.0 on minishift
- Compile oc platform native binary.
- git clone https://github.com/openshift/origin.git
- cd origin
- git checkout release-3.11
- make
- Binary will be available in the _output/local/bin/linux/amd64/ (linux) or similar for other platform
$ mkdir -p ~/.minishift/cache/oc/v3.11.0/linux/ (or ~/.minishift/cache/oc/v3.11.0/darwin or ~/.minishift/cache/oc/v3.11.0/windows as per platform)
$ cp <your compilied oc binary> ~/.minishift/cache/oc/v3.11.0/linux/ (or whatever your platform specific path)
$ minishift config set skip-check-openshift-version true
@@ -46,10 +46,18 @@ func StartProxy(proxyPort int, proxyUpstreamAddr string) {
// set custom CA
setCA(minishiftTLS.CACert, minishiftTLS.CAKey)
+ f, err := goos.OpenFile("/tmp/proxy_access.log", goos.O_APPEND|goos.O_CREATE|goos.O_WRONLY, 0644)
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ logger := log.New(f, "proxy", log.Lshortfile)
@praveenkumar
praveenkumar / minishift.spec
Created August 14, 2018 10:45
Minishift spec file.
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
#
@praveenkumar
praveenkumar / vsCode_launch.json
Created August 21, 2017 11:59
VS code launch json for minishift debuging using delve
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
@praveenkumar
praveenkumar / distro.txt
Last active November 4, 2016 14:33
Different distro's Kernel and RAMdisk Path
Distro Kernel path RAM disk path
==========================================================================================
Fedora /isolinux/vmlinuz0 /isolinux/initrd0.img
RHEL7/CentOS7 /isolinux/vmlinuz0 /isolinux/initrd0.img
openSUSE /boot/i386/loader/linux /boot/i386/loader/initrd
Mandriva /i586/isolinux/alt0/vmlinuz /i586/isolinux/alt0/all.rdz
Ubuntu /casper/vmlinuz.efi /casper/initrd.lz
Debian /install.386/vmlinuz /isolinux/initrd.img
Arch /arch/boot/x86_64/vmlinuz /arch/boot/x86_64/archiso.img
@praveenkumar
praveenkumar / git_workflow.sh
Created September 12, 2016 08:19
Git workflow for PR's
# Here I am using forked version adb-utils (https://github.com/projectatomic/adb-utils)
# which I cloned to my box and add remote to upstream also
git clone [email protected]:praveenkumar/adb-utils.git
git remote add upstream https://github.com/projectatomic/adb-utils
# My git remote will be look like
git remote -v
origin [email protected]:praveenkumar/adb-utils.git (fetch)