Skip to content

Instantly share code, notes, and snippets.

View ronakbanka's full-sized avatar
🏠
Working from home

Ronak Banka ronakbanka

🏠
Working from home
View GitHub Profile
#!/bin/bash -e
# Usage ./k8s-service-account-kubeconfig.sh ( namespace ) ( service account name )
TEMPDIR=$( mktemp -d )
trap "{ rm -rf $TEMPDIR ; exit 255; }" EXIT
SA_SECRET=$( kubectl get sa -n $1 $2 -o jsonpath='{.secrets[0].name}' )
@ronakbanka
ronakbanka / notes.md
Created January 24, 2018 08:30 — forked from matiasinsaurralde/notes.md
Tyk + Cloud Foundry + CF Router

Initial setup

Note: Target the right organization.

cf create-space tyk-deployment
cf target -o 'matias-org' -s 'tyk-deployment'

Sample application

@ronakbanka
ronakbanka / .gitconfig
Last active August 29, 2015 14:22 — forked from robmiller/.gitconfig
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
Quick gist on getting vsphere and vcenter and fog/vsphere going
# Things to download
- Download free evaluation version of window 2008
- Download free evaluation of esxi v5
- Download free evaluation of esxi vsphere (control center) iso
# Install esxi in vmware fusion
1)Install esxi in vmware (select vmware/esx as host)
create a user root/pipopopo
<%
director_uuid = 'CHANGEME'
static_ip = 'CHANGEME'
root_domain = "#{static_ip}.xip.io"
deployment_name = 'cf'
cf_release = '170'
protocol = 'http'
common_password = 'c1oudc0wc1oudc0w'
%>
---
#!/bin/bash
#
# pgpool-II replication manager
#
# Interfaces with pgpool's pcp command-line tools to provide access to common functions for managing
# load-balancing and failover.
#
# dsimmons@squiz.co.uk
# 2011-08-28
<% deployment_name = 'docker' %>
<% os = 'ubuntu' %>
<% tld = 'microbosh' %>
<% director_uuid = 'GET_FROM_BOSH_STATUS' %>
---
name: <%= deployment_name %>
director_uuid: <%= director_uuid %>
releases:
- name: docker
<%
director_uuid = 'CHANGEME'
static_ip = 'CHANGEME'
root_domain = "#{static_ip}.xip.io"
deployment_name = 'cf'
cf_release = '170'
protocol = 'http'
common_password = 'c1oudc0wc1oudc0w'
%>
---
---
<%
director_uuid = "81fa055f-8a94-4d34-9e67-59edbc25874b"
protocol = "http"
cf_release = "153"
ip_address = "10.112.219.59"
common_password = "c1oudc0w"
#root_domain = "10.112.218.60.xip.io"
root_domain = "10.112.219.59.xip.io"
deployment_name = "cf-demo"