Skip to content

Instantly share code, notes, and snippets.

View ghulevishal's full-sized avatar

Vishal Ghule ghulevishal

  • Bangalore
View GitHub Profile

Create Ubuntu 16.04 VM

Install Docker with specific version 18.06 (That is supported by minikube)

sudo apt-get update
sudo apt-get install \

1.Core Concept

Q1. Create a Multi-container Pod with name multi-c-pod, which contains containers from following images :-

  • image1 : nginx:alpine
  • image2 : redis
  • image3 : memcached

You can have container names, as per your choice.

Q2. Create a Namespace with name mynamespace using YAML. Create a Pod with name mypod using nginx:alpine image, inside this mynamespace namespace.

Keybase proof

I hereby claim:

  • I am ghulevishal on github.
  • I am vishalghule (https://keybase.io/vishalghule) on keybase.
  • I have a public key ASD2pz71F9x33wKQlKLwzGk7-TwCKIt2QpGDF7Sa25qXKwo

To claim this, I am signing this object:

apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubelet kubeadm kubectl
@ghulevishal
ghulevishal / kubectl-shortcuts.sh
Created November 19, 2018 04:55 — forked from tamas-molnar/kubectl-shortcuts.sh
aliases and shortcuts for kubectl
alias kc='kubectl'
alias kclf='kubectl logs --tail=200 -f'
alias kcgs='kubectl get service -o wide'
alias kcgd='kubectl get deployment -o wide'
alias kcgp='kubectl get pod -o wide'
alias kcgn='kubectl get node -o wide'
alias kcdp='kubectl describe pod'
alias kcds='kubectl describe service'
alias kcdd='kubectl describe deployment'
alias kcdf='kubectl delete -f'
@ghulevishal
ghulevishal / procedure.md
Created June 20, 2018 08:34 — forked from stefanozanella/procedure.md
Create Ubuntu server image for OpenStack

The procedure below is done on a CentOS 6.3 x86_64 hypervisor

  1. Create qcow image:
qemu-img create -f qcow2 ubuntu-12.10-server-amd64.img 5G
  1. Download Ubuntu server ISO:
wget "http://www.ubuntu.com/start-download?distro=server&bits=64&release=latest"
@ghulevishal
ghulevishal / Flask on CF.md
Created June 13, 2018 10:53 — forked from ihuston/Flask on CF.md
Simple Flask application for Cloud Foundry

Simple Python Flask app on Cloud Foundry

This is a (very) simple Flask application that shows how the built-in Python buildpack detection on Cloud Foundry works.

To push to Cloud Foundry, log in and then use

$ cf push myapp-name

Python on Cloud Foundry

@ghulevishal
ghulevishal / k8s-play.md
Created January 22, 2018 05:24 — forked from egernst/k8s-play.md
Clear Containers and CRIO and K8S build up

Get go 1.8.3:

wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
sudo tar -xvf go1.8.3.linux-amd64.tar.gz -C /usr/local/
mkdir -p $HOME/go/src
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
go version
@ghulevishal
ghulevishal / kubectl.md
Created October 30, 2017 08:06 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no

Why I prefer CLI over UI ?

  • CLI tools are Composable using pipes (great old school example http://www.youtube.com/watch?v=tc4ROCJYbm0&t=5m32s)
  • Great for automation and batch processing
  • Fewer mouse clicks. Can go futher using only keyboard
  • Avoid cluky UIs especially over poor connections
  • I'm insulated from UI changes
  • Easier to debug as they are often more verbose than the UI