Instantly share code, notes, and snippets.

View dcn.yaml
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: tfsw-sanatra
namespace: myproject
spec:
runLatest:
configuration:
revisionTemplate:
spec:
View Istio_proxy.txt
➜ knative-kubecon git:(master) ✗ oc logs -f urbanobservatory-event-source-nxpcq-f7c754f5f-9b694 -c istio-proxy
2018-12-06T22:22:56.189456Z info Version root@66ce69d4a51e-docker.io/istio-1.0.2-d639408fded355fb906ef2a1f9e8ffddc24c3d64-Clean
2018-12-06T22:22:56.189549Z info Proxy role: model.Proxy{ClusterID:"", Type:"sidecar", IPAddress:"172.17.0.28", ID:"urbanobservatory-event-source-nxpcq-f7c754f5f-9b694.myproject", Domain:"myproject.svc.cluster.local", Metadata:map[string]string(nil)}
2018-12-06T22:22:56.189576Z info Attempting to lookup address: istio-statsd-prom-bridge.istio-system
2018-12-06T22:22:56.193548Z info Addr resolved to: 172.30.109.48:9125
2018-12-06T22:22:56.193565Z info Finished lookup of address: istio-statsd-prom-bridge.istio-system
2018-12-06T22:22:56.194115Z info Effective config: binaryPath: /usr/local/bin/envoy
configPath: /etc/istio/proxy
connectTimeout: 10s
controlPlaneAuthPolicy: MUTUAL_TLS
View Source_CrashLoopBackoff.txt
Name: urbanobservatory-event-source-nxpcq-f7c754f5f-9b694
Namespace: myproject
Priority: 0
PriorityClassName: <none>
Node: localhost/192.168.122.187
Start Time: Thu, 06 Dec 2018 23:22:53 +0100
Labels: pod-template-hash=937310919
source=urbanobservatory-event-source
Annotations: openshift.io/scc=anyuid
sidecar.istio.io/inject=true
View gist:6a504bbfb4fc065dc74eea26b51b01a5
EVERE: Unhandled exception
io.vertx.core.json.DecodeException: Failed to decode:Cannot construct instance of `java.util.LinkedHashMap` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('eyJzaWduYWwiOjIsImRhdGEiOnsiYnJva2VyYWdlIjp7ImJyb2tlciI6eyJpZCI6IkJNUy1VU0ItRy1KQUNFIiwibWV0YSI6eyJwcm90b2NvbCI6IkJBQ05FVCIsImJ1aWxkaW5nIjoiVXJiYW4gU2NpZW5jZXMgQnVpbGRpbmciLCJidWlsZGluZ0Zsb29yIjoiRyJ9fSwiaWQiOiJEcml2ZXJzLkdGX1VQU19Sb29tLkRCX0NvbW1zXzExLnBvaW50cy5MM19DdXJyZW50IiwibWV0YSI6e319LCJlbnRpdHkiOnsibmFtZSI6IlVyYmFuIFNjaWVuY2VzIEJ1aWxkaW5nOiBGbG9vciBHIiwibWV0YSI6eyJidWlsZGluZyI6IlVyYmFuIFNjaWVuY2VzIEJ1aWxkaW5nIiwiYnVpbGRpbmdGbG9vciI6IkcifX0sImZlZWQiOnsibWV0cmljIjoiR0YgVVBTIFIsLkwzIEN1cnJlbnQiLCJtZXRhIjp7fX0sInRpbWVzZXJpZXMiOnsidW5pdCI6Im5vIHVuaXRzIiwidmFsdWUiOnsidGltZSI6IjIwMTgtMTItMDVUMTE6MDk6NTAuMDEyWiIsInRpbWVBY2N1cmFjeSI6NC4zNjQsImRhdGEiOjcuMTk2NDM4MzEyNTMwNTE4LCJ0eXBlIjoiUmVhbCJ9fX0sInJlY2lwaWVudHMiOjB9')
at [Source: (io.netty.buffer.ByteBufInpu
View HelloWorld.java
package com.example.helloworld;
import io.cloudevents.http.reactivex.vertx.VertxCloudEvents;
import io.vertx.core.http.HttpHeaders;
import io.vertx.reactivex.core.AbstractVerticle;
public class HelloWorld extends AbstractVerticle {
public void start() {
View strimzi_route.yaml
apiVersion: kafka.strimzi.io/v1alpha1
kind: Kafka
metadata:
name: my-cluster
spec:
kafka:
replicas: 1
listeners:
plain:
authentication:
View strimzi-eventing.md
## temporary installing Strimzi
oc apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.8.2/strimzi-cluster-operator-0.8.2.yaml
# Simple Cluster with one ZK and one Kafka node
oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/master/examples/kafka/kafka-persistent-single.yaml

oc get pods -n myproject -w 

wait...

View gist:fdaa563edf0581f3fe56949d415d02bf
sed -i -e 's/"admissionConfig":{"pluginConfig":null}/"admissionConfig": {\
    "pluginConfig": {\
        "ValidatingAdmissionWebhook": {\
            "configuration": {\
                "apiVersion": "apiserver.config.k8s.io/v1alpha1",\
                "kind": "WebhookAdmission",\
                "kubeConfigFile": "/dev/null"\
            }\
        },\
View special.yaml
apiVersion: eventing.knative.dev/v1alpha1
kind: Channel
metadata:
name: testchannel
spec:
provisioner:
apiVersion: eventing.knative.dev/v1alpha1
kind: ClusterChannelProvisioner
name: in-memory-channel
---
View HackyScript.md

Install almost all

git clone -b no_old_eventing --single-branch git@github.com:matzew/knative-operators.git
cd knative-operators
./etc/scripts/install.sh

WAIT