Skip to content

Instantly share code, notes, and snippets.

View christian-posta's full-sized avatar

Christian Posta christian-posta

View GitHub Profile
@christian-posta
christian-posta / sample-app-mesh-envoy.yaml
Created March 21, 2019 21:15
Envoy Sidecar Config from AWS AppMesh
{
"configs": [
{
"@type": "type.googleapis.com/envoy.admin.v2alpha.BootstrapConfigDump",
"bootstrap": {
"node": {
"id": "mesh/ceposta-mesh/virtualNode/colorgateway-vn",
"cluster": "mesh/ceposta-mesh/virtualNode/colorgateway-vn",
"build_version": "c74766d7261bd56f8ffa1a06ebb9325f66fe6263/1.8.0/Clean/DEBUG"
},
@christian-posta
christian-posta / istio-auth-sds.yaml
Last active March 19, 2019 22:16
Install Istio with SDS enabled
apiVersion: v1
kind: Namespace
metadata:
name: istio-system
labels:
istio-injection: disabled
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
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"
}