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
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
)
@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 / 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 / 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 / Corefile
Created March 5, 2019 08:17
[Dont DELETE] Corefile for coredns
$ cat Corefile
tt.testing {
log
errors
health
file test1-api
}
. {
forward . mynameserver {
except tt.testing
@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 / operatorTalks.md
Created January 28, 2019 05:37 — forked from surajnarwade/operatorTalks.md
Talks related to Controllers & Operators
@praveenkumar
praveenkumar / libvirt-actuator.sh
Created January 23, 2019 10:31
Run of libvirt actuator on running cluster manually.
$ cat /home/prkumar/work/github/practice/go/src/github.com/openshift/installer/bin/test/openshift/99_openshift-cluster-api_worker-machineset.yaml
apiVersion: v1
apiVersion: cluster.k8s.io/v1alpha1
kind: Machine
metadata:
creationTimestamp: null
labels:
sigs.k8s.io/cluster-api-cluster: test1
sigs.k8s.io/cluster-api-machine-role: worker
sigs.k8s.io/cluster-api-machine-type: worker
@praveenkumar
praveenkumar / podDetails
Created January 14, 2019 09:59
pods details when running and active
# /usr/local/bin/kubectl get pods --all-namespaces -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
kube-system etcd-member-test1-master-0 1/1 Running 1 6d 192.168.126.11 test1-master-0 <none>
openshift-apiserver-operator openshift-apiserver-operator-77756dfc66-942df 1/1 Running 3 6d 10.128.0.56 test1-master-0 <none>
openshift-apiserver apiserver-sf68z 1/1 Running 2 6d 10.128.0.51 test1-master-0 <none>
openshift-cluster-api cluster-autoscaler-operator-6855f55d94-29jk