- local https://github.com/kubernetes-sigs/kind (or just use minikube if it works for you)
- cloud https://cloud.google.com/kubernetes-engine (for PersistentVolume and Ingress, I needed to try the real deal)
- practice environment: https://github.com/arush-sal/cka-practice-environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import argv | |
import os | |
import re | |
import subprocess | |
import urllib.request | |
import urllib.parse | |
import youtube_dl | |
from gi.repository import Notify | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
print_usage(){ | |
echo "USAGE:" | |
echo "./new-env.sh NEW_ENV_NAME REGION [stage|prod|example]" | |
echo "example: ./new-env.sh dev ap-southeast-2 stage" | |
echo "REGION is the same for the source and destination environment" | |
echo "[stage|prod|example] are the source environment that will be copied. " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
print_usage(){ | |
echo "USAGE:" | |
echo | |
echo "PROFILE=customer ./delete-s3-bucket.sh [list | all | 'bucket_name']" | |
echo | |
echo | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$PROJECT="name of the google cloud project" | |
gcloud beta container --project "$PROJECT" clusters create "istio-cluster-1" \ | |
--zone "europe-north1-c" --username "admin" --cluster-version "1.10.7-gke.2" \ | |
--machine-type "n1-standard-1" --image-type "COS" --disk-type "pd-standard" \ | |
--disk-size "20" --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" \ | |
--min-cpu-platform "Intel Skylake" --num-nodes "4" --enable-cloud-logging --enable-cloud-monitoring \ | |
--network "projects/$PROJECT/global/networks/k8s-cluster" \ | |
--subnetwork "projects/$PROJECT/regions/europe-north1/subnetworks/subnet-k8s-1" \ | |
--addons HorizontalPodAutoscaling,HttpLoadBalancing --no-enable-autoupgrade --enable-autorepair |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl create clusterrolebinding cluster-admin-binding \ | |
--clusterrole=cluster-admin \ | |
--user=$(gcloud config get-value core/account) | |
# export PATH=$PWD/bin:$PATH | |
kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml | |
helm template install/kubernetes/helm/istio --name istio --namespace istio-system \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section data-transition='concave' data-state='blackout'> | |
<h1>CHAOS ENGINEERING</h1> | |
<h2>with</h2> | |
<h1>SERVICE MESH</h1> | |
</section> | |
<section data-transition='concave' id="inquiry"> | |
<h2>Questions to the audience</h2> | |
<ol> | |
<!-- <li>Who uses containers ?</li> --> |
I hereby claim:
- I am veggiemonk on github.
- I am jbisconti (https://keybase.io/jbisconti) on keybase.
- I have a public key ASAvfjo-DwSJ4vxfSOY_eQTNExUvvJLQhlkUeNhEPja35Ao
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pipe = (...fns) => x => fns.reduce((acc, fn) => fn(acc), x); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
http://jsbin.com/rolojuhuya/1/ | |
https://stackoverflow.com/questions/8802845/inheriting-from-the-error-object-where-is-the-message-property | |
https://stackoverflow.com/questions/783818/how-do-i-create-a-custom-error-in-javascript | |
*/ | |
function CustomError(message, somethingElse) { | |
var error = Error.call(this, message); |