Skip to content

Instantly share code, notes, and snippets.

View kmova's full-sized avatar
💭
living is coding and mentoring

Kiran Mova kmova

💭
living is coding and mentoring
View GitHub Profile
@kmova
kmova / node-custom-setup.yaml
Last active October 3, 2022 13:32 — forked from jjo/node-custom-setup.yaml
Run commands at Kubernetes *nodes* via `privileged` DaemonSet + `nsenter` hack, very useful for setups requiring base packages pre-installed at nodes. Please take a moment to understand what it does, and *don't* use it for *production*. Grab the logs with: kubectl logs -n kube-system -l k8s-app=node-custom-setup -c init-node
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
namespace: kube-system
name: node-custom-setup
labels:
k8s-app: node-custom-setup
annotations:
command: &cmd apt-get update -qy && apt-get install -qy open-iscsi xfsprogs
@kmova
kmova / node-custom-setup.yaml
Created September 25, 2019 02:02 — forked from jjo/node-custom-setup.yaml
Run commands at Kubernetes *nodes* via `privileged` DaemonSet + `nsenter` hack, very useful for setups requiring base packages pre-installed at nodes. Please take a moment to understand what it does, and *don't* use it for *production*. Grab the logs with: kubectl logs -n kube-system -l k8s-app=node-custom-setup -c init-node
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
namespace: kube-system
name: node-custom-setup
labels:
k8s-app: node-custom-setup
annotations:
command: &cmd apt-get update -qy && apt-get install -qy tgt ceph-fs-common ceph-common xfsprogs
@kmova
kmova / gist:1c15a0ca5e63a24d7ae1718496175b23
Created July 4, 2019 05:16
Test OpenEBS Local PV by using GKE Local SSD as raw block devices.
(a) Create v1.12.8-gke.10 cluster with one node, two local SSDs.
(b) Prior to installing openebs, I logged into the node and did the following to wipeout the ext4 that get pre-formatted.
> sudo umount /mnt/disks/ssd0
> sudo umount /mnt/disks/ssd1
> sudo wipefs -af /dev/sdb
> sudo wipefs -af /dev/sdc
> lsblk -o NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT
NAME TYPE SIZE FSTYPE MOUNTPOINT
sda disk 100G
@kmova
kmova / commit.md
Created August 30, 2018 05:23 — forked from abravalheri/commit.md
RFC: Git Commit Message Guidelines

Commit Message Guidelines

In the last few yers, the number of programmers concerned about writting structured commit messages had dramatically grown. As exposed by Tim Pope in article readable commit messages are easy to follow when looking through the project history. Moreover the AngularJS contributing guides introduced conventions that can be used by automation tools to automatically generate useful documentation, or by developpers during debbuging process.

This document borrow some concepts, conventions and even text mainly from these two sources, extending them in order to provide a sensible guideline for writing commit messages.