Skip to content

Instantly share code, notes, and snippets.

View richardcase's full-sized avatar
🌴
On vacation

Richard Case richardcase

🌴
On vacation
View GitHub Profile
@cpanato
cpanato / .md
Last active June 10, 2022 13:52
CAPG / CAPI bootstrap with clusterctl

CAPG / CAPI bootstrap with clusterctl

This example uses the latest clusterctl (v1.0.0) and also the latest CAPG release with suports v1beta1 (v1.0.0)

steps to get a running workload cluster, for testing/development purposes

this is a quick overview for more in depth you can check https://cluster-api.sigs.k8s.io/user/quick-start.html

  1. create a kind cluster

Authentication

  1. Run gcloud auth list to check if you have authenticated to gcloud already and what email was used.
  2. Run gcloud auth login to login with the right email id. cross check with step 1 when done.
  3. Run gcloud auth application-default login to set up default application credentials.
  4. Step 3 will create a json file with credentials, you should run export GOOGLE_APPLICATION_CREDENTIALS=$HOME/.config/gcloud/application_default_credentials.json after cross checking if the file exists and is in the correct path which is typically $HOME/.config/gcloud/application_default_credentials.json

Initialize project etc

  1. gcloud config set project k8s-infra-sandbox-capg to set the correct project for operations
@esc
esc / anaconda.sh
Last active October 8, 2018 21:06
Anconda activation and deactivation functions for ZSH
# Functions to activate/deactivate Continuum Analytics Anaconda Python distribution
# by manipulating the $PATH.
export ANACONDA_PATH="$HOME/anaconda/bin"
function have_anaconda(){
[[ -n $path[(r)$ANACONDA_PATH] ]]
}
function anaconda_on(){
if have_anaconda ; then
This example shows how to setup an environment running Rails 3 under 1.9.2 with a 'rails3' gem set.
∴ rvm update --head
# ((Open a new shell)) or do 'rvm reload'
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install 1.9.2
# Switch to 1.9.2-head and gemset rails3, create if it doesn't exist.
∴ rvm --create use 1.9.2@rails3