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 / 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 / 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