Skip to content

Instantly share code, notes, and snippets.

View ymesika's full-sized avatar
👨‍💻
Ready, Set, Code!

Yossi Mesika ymesika

👨‍💻
Ready, Set, Code!
View GitHub Profile
@ymesika
ymesika / cleanupIstio.sh
Created May 20, 2018 05:34
Istio Cleanup Script
#!/bin/bash
# Script to cleanup leftovers after invoking `helm del --purge istio`
protos=( all cm secrets sa clusterrolebinding clusterrole crd )
for proto in "${protos[@]}"; do
for resource in $(kubectl get $proto -n istio-system | grep istio | awk 'NR>1{print $1}'); do
kubectl delete $proto $resource -n istio-system
done
done
@ymesika
ymesika / tornado.yaml
Last active September 10, 2019 08:43
Websockets Demo (Istio v0.7.1 / Istio Nightly Build)
apiVersion: v1
kind: Service
metadata:
name: tornado
labels:
app: tornado
spec:
ports:
- port: 8888
name: http
@ymesika
ymesika / bookinfo-gateway.yaml
Created June 21, 2018 10:12
Bookinfo with HTTPS
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: bookinfo-gateway
spec:
selector:
istio: ingressgateway # use istio default controller
servers:
- port:
number: 443