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 / squid.conf
Created June 13, 2016 09:14
squid proxy file (/etc/squid/squid.conf)
#
# Recommended minimum configuration:
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
# Auth
auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/squid_passwd
@praveenkumar
praveenkumar / gist:5ed3a2bacc38615fd4b2b3cf74f445c2
Created August 6, 2024 11:22
Consuming Podman and kubernetes api using OpenShift Local VM
Instructions about how to use podman from OpenShift Local VM
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
)
@praveenkumar
praveenkumar / clusterversion.yaml
Created March 4, 2020 12:27
Doc gist for cvo changes
$ oc get clusterversion -oyaml
apiVersion: v1
items:
- apiVersion: config.openshift.io/v1
kind: ClusterVersion
metadata:
creationTimestamp: "2020-02-29T17:11:09Z"
generation: 4
name: version
resourceVersion: "616039"
@praveenkumar
praveenkumar / snc.sh
Last active March 18, 2020 13:37
Debugging etcd issue.
#!/bin/bash
set -euo pipefail
export LC_ALL=C
export LANG=C
INSTALL_DIR=crc-tmp-install-data
JQ=${JQ:-jq}
OC=${OC:-oc}
@praveenkumar
praveenkumar / Vagrant.patch
Created December 24, 2019 16:44
running k8s hard way using vagrant hard way
# git diff
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index 338ca59..bc6c1cd 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -23,7 +23,7 @@ Vagrant.configure("2") do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
# config.vm.box = "base"
- config.vm.box = "ubuntu/bionic64"
@praveenkumar
praveenkumar / [Dont DELETE] Openshift_Operators
Created October 17, 2019 10:08
Put the details about consumed resources by Openshift Operators.
This gist thread will be used to find out what all operators are present as part of CRC and what can be done to make low
memory/cpu footprint to the host.
@praveenkumar
praveenkumar / installer
Created March 5, 2019 06:01
[DONT DELETE] installer related gist and comments.
This gist contain the install related comments.
@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 / dmesg_hyperkit
Created January 4, 2019 09:18
dmesg logs for hyperkit
[ 1322.010706] INFO: task xfsaild/vda2:1498 blocked for more than 120 seconds.
[ 1322.011965] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1322.013367] xfsaild/vda2 D ffff9d70303530c0 0 1498 2 0x00000000
[ 1322.014725] Call Trace:
[ 1322.015151] [<ffffffffb96aa0de>] ? try_to_del_timer_sync+0x5e/0x90
[ 1322.016275] [<ffffffffb9d67c49>] schedule+0x29/0x70
[ 1322.017215] [<ffffffffc0399bc6>] _xfs_log_force+0x1c6/0x2c0 [xfs]
[ 1322.018333] [<ffffffffb96d67b0>] ? wake_up_state+0x20/0x20
[ 1322.019425] [<ffffffffc03a5dcc>] ? xfsaild+0x16c/0x6f0 [xfs]
[ 1322.020504] [<ffffffffc0399cec>] xfs_log_force+0x2c/0x70 [xfs]