Skip to content

Instantly share code, notes, and snippets.

View christian-posta's full-sized avatar

Christian Posta christian-posta

View GitHub Profile
apiVersion: gateway.solo.io/v1
kind: VirtualService
metadata:
name: default
namespace: gloo-system
spec:
virtualHost:
domains:
- '*'
name: gloo-system.default
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: custom-ingressgateway-service-account
labels:
app: custom-ingressgateway
---
apiVersion: v1
kind: Service
# Common settings.
global:
# Default hub for Istio images.
# Releases are published to docker hub under 'istio' project.
# Daily builds from prow are on gcr.io, and nightly builds from circle on docker.io/istionightly
hub: docker.io/istio
# Default tag for Istio images.
tag: 1.0.0-snapshot.2
@christian-posta
christian-posta / istio-gen-deploy.bash
Created January 26, 2018 13:30
istioctl gen-deploy --help
ceposta@postamacpro(~) $ istioctl gen-deploy --help
istioctl gen-deploy produces deployment files to run the minimum Istio control for the set of features requested by the --feature flag. If no features are provided, we create deployments for the default control plane: Pilot, Mixer, CA, and Ingress Proxies, with mTLS enabled.
Usage:
istioctl gen-deploy [flags]
Examples:
istioctl gen-deploy --features routing,policy,initializer -o helm
Flags:
@christian-posta
christian-posta / gobench.sh
Created January 15, 2018 21:35
kubectl execution of go benchmark tool
kubectl run -i --rm --restart=Never gobench --image=piotrminkina/gobench --command -- gobench -u http://httpbin:8080/get -c 3 -r 5
@christian-posta
christian-posta / istio-proxy-cfg.sh
Created January 15, 2018 17:19
Query pilot xDS
#!/usr/bin/env bash
set -e
#This script only works in k8s environment
#PILOT_URL, if not set, can be automatically discovered by this script.
#By default, it assumes that istio is deployed in the istio-system namespace
#with the service name as 'istio-pilot'. User can set shell environment variables
#ISTIO_NAMESPACE and ISTIO_PILOT otherwise.
: ${PILOT_URL:=}
@christian-posta
christian-posta / Dockerfile
Last active December 23, 2017 16:32 — forked from jmprusi/Dockerfile
Building Istio dockers from macOS
FROM ubuntu:xenial
# This Dockerfile has been taken from:
# https://github.com/nmnellis/istio/blob/access-logging/ci/Dockerfile
RUN apt-get update \
&& apt-get install -y openjdk-8-jdk make libtool m4 autoconf uuid-dev cmake golang-go curl python python-pip git \
&& curl -L -O http://storage.googleapis.com/bazel-apt/pool/jdk1.8/b/bazel/bazel_0.8.0_amd64.deb \
&& dpkg -i bazel_0.8.0_amd64.deb || true \
&& apt-get -f install -y \
#!/usr/bin/groovy
@Library('github.com/fabric8io/fabric8-pipeline-library@master')
def localItestPattern = ""
try {
localItestPattern = ITEST_PATTERN
} catch (Throwable e) {
localItestPattern = "*IT"
}
@christian-posta
christian-posta / README.md
Created May 22, 2017 18:13
microservices patterns with envoy proxy

Follow on notes from blog

{
"listeners": [
{
"address": "tcp://0.0.0.0:80",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
"codec_type": "auto",