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 / 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",
---
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
fabric8.io/git-commit: 60913007cec7ab723f7bd4b9dad083a85b163fa8
fabric8.io/git-branch: ceposta-istio
# GENERATED FILE. Use with Kubernetes 1.5+
# TO UPDATE, modify files in install/kubernetes/templates and run updateVersion.sh
# Mixer
apiVersion: v1
kind: Service
metadata:
name: istio-mixer
labels:
istio: mixer
spec:
@christian-posta
christian-posta / enable-zipkin-istio.diff
Created May 10, 2017 14:12
patch upstream istio.yaml to use snapshots for the zipkin stuff
diff --git a/install/kubernetes/istio.yaml b/install/kubernetes/istio.yaml
index af821aa..9602e75 100644
--- a/install/kubernetes/istio.yaml
+++ b/install/kubernetes/istio.yaml
@@ -57,6 +57,7 @@ data:
mixerAddress: istio-mixer:9091
discoveryAddress: istio-manager:8080
ingressService: istio-ingress
+ zipkinAddress: zipkin:9411
---
@christian-posta
christian-posta / zipkin.yaml
Created May 10, 2017 13:58
zipkin service for istio demo
apiVersion: v1
kind: Service
metadata:
name: zipkin
labels:
infra: zipkin
spec:
type: NodePort
ports:
- port: 9411
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1e5acb6]
goroutine 1 [running]:
main.glob..func1(0x2941960, 0xc420433b80, 0x0, 0x2, 0x0, 0x0)
/home/jenkins/workspace/manager/presubmit/src/istio.io/manager/cmd/istioctl/inject.go:88 +0xc6
istio.io/manager/vendor/github.com/spf13/cobra.(*Command).execute(0x2941960, 0xc4204339a0, 0x2, 0x2, 0x2941960, 0xc4204339a0)
/home/jenkins/workspace/manager/presubmit/src/istio.io/manager/vendor/github.com/spf13/cobra/command.go:599 +0x3e9
istio.io/manager/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2941b80, 0x0, 0xc4202e6ec0, 0x1)
/home/jenkins/workspace/manager/presubmit/src/istio.io/manager/vendor/github.com/spf13/cobra/command.go:689 +0x339
---
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Secret
metadata:
labels:
provider: fabric8
group: io.fabric8.devops.apps
node('maven') {
stage 'checkout'
git url: 'http://gogs-obsidian.paas.rdu.salab.redhat.com/gogsadmin/demo.git', branch: 'master'
stage 'build-app'
sh "mvn clean package -Dtest=false -DfailIfNoTests=false -DskipITs"
stash name:"build-context", includes:"target/*.jar"
@christian-posta
christian-posta / f8binarys2i.txt
Last active February 16, 2017 23:09
Using f8 s2i-java for binary builds
so... first make a dir $ROOT_DIR
then make $ROOT_DIR/deployments
copy spring-boot.jar to $ROOT_DIR/deployments
then from $ROOT_DIR run this:
oc import-image --from=fabric8/s2i-java:1.3 s2i-java --confirm
oc new-build --binary=true --strategy=source --image-stream=s2i-java --name=sample-foo
oc start-build sample-foo --from-dir=.