Skip to content

VaibhavPage/kubecon-demo

Repository files navigation

alias k="kubectl --namespace=argo-events"
curl https://dl.minio.io/client/mc/release/linux-amd64/mc -o mc
chmod +x mc
./mc config host add minio http://35.232.72.252:9000 myaccess mysecret
./mc cp kubelogo.png minio/input

0. Let's install Argo-Events

sh install.sh

1.


  • Create an event source

    k apply -f https://raw.githubusercontent.com/VaibhavPage/kubecon-demo/master/demo1/gateway/webhook-gateway-configmap.yaml
  • Create gateway

    k create -f https://raw.githubusercontent.com/VaibhavPage/kubecon-demo/master/demo1/gateway/webhook-gateway.yaml
  • Create sensor

    k apply -f https://raw.githubusercontent.com/VaibhavPage/kubecon-demo/master/demo1/sensor/webhook-sensor.yaml
  • Post request

 curl -X POST --data '{"msg": "Hello KubeCon!!!"}' http://35.226.73.251:12000/hello
  • Delete workflow
k delete wf --all

  • Update event sources

    k apply -f https://raw.githubusercontent.com/VaibhavPage/kubecon-demo/master/demo1/gateway/webhook-gateway-configmap-updated.yaml
  • Check whether new event source is correctly added,

     k get gateway webhook-gateway -o yaml
  • Update triggers in sensor

    k apply -f https://raw.githubusercontent.com/VaibhavPage/kubecon-demo/master/demo1/sensor/webhook-sensor-updated.yaml
  • Post request to /hello

curl -X POST --data '{"msg": "Hello KubeCon!!!"}' http://35.226.73.251:12000/hello
  • Post request to /echo
curl -X POST --data '{"msg": "echo KubeCon!!!"}' http://35.226.73.251:12000/echo
  • Clear gateways, sensors and workflows
k delete gateways --all
k delete sensors --all
k delete wf --all

2.

  • Input image

  • Output image

  • Create event sources

 k apply -f https://raw.githubusercontent.com/VaibhavPage/kubecon-demo/master/demo2/gateway/s3-gateway-configmap.yaml
  • Create S3 gateway
k apply -f https://raw.githubusercontent.com/VaibhavPage/kubecon-demo/master/demo2/gateway/s3-gateway.yaml
  • Check all event sources are running
k get gateways s3-gateway -o yaml
  • Create input sensor
k apply -f https://raw.githubusercontent.com/VaibhavPage/kubecon-demo/master/demo2/sensor/s3-input-sensor.yaml
  • Create output sensor
k apply -f https://raw.githubusercontent.com/VaibhavPage/kubecon-demo/master/demo2/sensor/s3-output-sensor.yaml
./mc cp kubelogo.png minio/input

Uninstall Argo-Events

sh uninstall.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published