Skip to content

Instantly share code, notes, and snippets.

🌰
🐿

Bharat Kunwar brtknr

🌰
🐿
Block or report user

Report or block brtknr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@brtknr
brtknr / K8s-Raw-Block-Kata.md
Created Apr 12, 2019 — forked from amshinde/K8s-Raw-Block-Kata.md
K8s Raw Block storage support with Kata
View K8s-Raw-Block-Kata.md
View minikube-kata.md

Running Kata Containers in Minikube for Kubernetes 1.14+

minikube is an easy way to try out a kubernetes (k8s) cluster locally. It utilises running a single node k8s stack in a local VM.

Kata Containers is an OCI compatible container runtime that runs container workloads inside VMs.

Wouldn't it be nice if you could use kata under minikube to get an easy out of the box experience to try out Kata? Well, turns out with a little bit of config and setup that is already supported, you can!

@brtknr
brtknr / default.partial
Created Nov 28, 2018
nginx config to do proxy_pass to a locally hosted server (/etc/nginx/sites-available/default)
View default.partial
location /bus/ {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
rewrite ^/bus(/.*)$ $1 break;
proxy_pass http://127.0.0.1:5000$1;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
@brtknr
brtknr / install_mosh_locally.sh
Created Nov 9, 2018 — forked from lazywei/install_mosh_locally.sh
Install mosh server without root permission
View install_mosh_locally.sh
#!/bin/sh
# this script does absolutely ZERO error checking. however, it worked
# for me on a RHEL 6.3 machine on 2012-08-08. clearly, the version numbers
# and/or URLs should be made variables. cheers, zmil...@cs.wisc.edu
mkdir mosh
cd mosh
@brtknr
brtknr / local.sh
Last active Oct 16, 2018
DevStack post ./stack.sh config
View local.sh
#!/usr/bin/env bash
# Sample ``local.sh`` for user-configurable tasks to run automatically
# at the successful conclusion of ``stack.sh``.
# NOTE: Copy this file to the root DevStack directory for it to work properly.
# This is a collection of some of the things we have found to be useful to run
# after ``stack.sh`` to tweak the OpenStack configuration that DevStack produces.
# These should be considered as samples and are unsupported DevStack code.
@brtknr
brtknr / .vimrc
Created Sep 19, 2018
Centos .vimrc dump
View .vimrc
" Tab settings
syntax on
" General tab options
set tabstop=2 shiftwidth=2 softtabstop=2 expandtab
" Python tab options
autocmd FileType python setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab foldmethod=indent
set rtp+=/usr/local/opt/fzf
set hlsearch
set clipboard=external
@brtknr
brtknr / config
Created Sep 19, 2018
My .ssh/config
View config
Host *
AddKeysToAgent yes
ServerAliveInterval 120
Host review.openstack.org
Protocol 2
User brtknr
IdentityFile ~/.ssh/id_rsa
Port 29418
Host eod
User hpckunw1
@brtknr
brtknr / .tmux.conf
Created Jun 17, 2018
My tmux configuration dump on MacBook
View .tmux.conf
# Configure your default shell, Zsh in my case.
set -g default-shell $SHELL
# Override the default command to use `reattach-to-user-namespace` for
# everything.
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
# Bind ']' to use pbbaste
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
View part-011.sh
#!/bin/sh
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
View cloud-init-output.log
Cloud-init v. 0.7.9 running 'init-local' at Tue, 29 May 2018 12:45:06 +0000. Up 22.23 seconds.
Cloud-init v. 0.7.9 running 'init' at Tue, 29 May 2018 12:45:11 +0000. Up 27.36 seconds.
ci-info: ++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++
ci-info: +--------+------+-----------+-----------------+-------+-------------------+
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +--------+------+-----------+-----------------+-------+-------------------+
ci-info: | eth0: | True | 10.0.0.4 | 255.255.255.192 | . | fa:16:3e:47:48:50 |
ci-info: | eth0: | True | . | . | d | fa:16:3e:47:48:50 |
ci-info: | lo: | True | 127.0.0.1 | 255.0.0.0 | . | . |
ci-info: | lo: | True | . | . | d | . |
You can’t perform that action at this time.