Skip to content

Instantly share code, notes, and snippets.

@askmeegs
askmeegs / perfnotes-6.8.19.md
Created June 8, 2019 13:55
perfnotes-6.8.19

running tests

setup

PROJECT_ID=mokeefe 
ISTIO_VERSION=1.2.0
ZONE=us-east1-b
MACHINE_TYPE=n1-standard-8
@askmeegs
askmeegs / vimnotes.md
Created June 4, 2019 20:03
vim notes

General

u = undo

ctrl-g = show file info

/ = search, then "n" to iterate through search results

Cursor movement:

@askmeegs
askmeegs / perfnotes-5.30
Last active May 30, 2019 21:24
istio performance benchmarking notes
helm template ./istio-1.1.7/install/kubernetes/helm/istio --name istio --namespace istio-system \
--set mixer.telemetry.enabled=false \
--set mixer.policy.enabled=false \
--set prometheus.enabled=true \
--set kiali.enabled=true --set kiali.createDemoSecret=true \
--set "kiali.dashboard.jaegerURL=http://jaeger-query:16686" \
--set "kiali.dashboard.grafanaURL=http://grafana:3000" \
--set grafana.enabled=true \
--set sidecarInjectorWebhook.enabled=true > istio.yaml
@askmeegs
askmeegs / hpa-k8s-notes.md
Last active May 23, 2019 15:10
Kubernetes Horizontal pod autoscaling (HPA)
@askmeegs
askmeegs / istio-ilb-notes.md
Last active May 21, 2019 15:37
istio ILB notes

Notes - modifying ports for Istio ILB

Setup

  1. create GKE cluster / connect to it

  2. download istio 1.1.7 release

  3. Install Istio with ILB gateway, kiali enabled

apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: redis-ext
spec:
hosts:
- instance1.default.svc.cluster.local #instance1 is the name of the VM
ports:
- number: 80
name: http
@askmeegs
askmeegs / gke-istio-beta-reproduce.md
Last active February 14, 2019 17:46
Attempt to reproduce Istio add-on problems

Attempt to reproduce Istio add-on problems

12 Feb 2019

source- gist

TLDR

  • ⚠️ HPA - I also encountered "unknown" HPA status in my EU cluster with the add-on (unlike in a manual installation), unclear why.
  • Egress - observed behavior with the add-on matches a manual Istio installation
@askmeegs
askmeegs / sleep-deploy.yml
Created June 13, 2018 14:14
hello world deployment for k8s
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sleep-deployment
labels:
app: sleep
spec:
replicas: 1
selector:
matchLabels:
/*
PROBLEM
Given a list of words, we may encode it by writing a reference string S and a list of indexes A.
For example, if the list of words is ["time", "me", "bell"], we can write it as S = "time#bell#" and indexes = [0, 2, 5].
Then for each index, we will recover the word by reading from the reference string from that index until we reach a "#" character.
What is the length of the shortest reference string S possible that encodes the given words?
@askmeegs
askmeegs / simpleserver.go
Created April 7, 2018 14:07
simple go webserver
package main
import (
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"time"
)