Skip to content

Latest commit

 

History

History

kyma-eventing

Kyma eventing example

Pre-requisites

Build and deployment steps

  1. Build the docker image of the event-registration-ui microservice.

    • cd kyma-eventing/event-registration-ui

    • docker build . -t <docker-username>/event-reg-ui -f Dockerfile

    Note: Replace <docker-username> with your username

  2. Push the docker image of the event-registration-ui microservice to your Container Image Library.

    • docker push <docker-username>/event-reg-ui

    Note: Replace <docker-username> with your username

  3. Update the docker image in the ./event-registration-ui/k8s/deployment.yaml file.

    Note: Replace <docker-username> with your username

  4. Create/update Kubernetes resources of the event-registration-ui microservice.

    • kubectl apply -f ./event-registration-ui/k8s/config-map.yaml
    • kubectl apply -f ./event-registration-ui/k8s/secret.yaml
    • kubectl apply -f ./event-registration-ui/k8s/deployment.yaml
    • kubectl apply -f ./event-registration-ui/k8s/service.yaml
    • kubectl apply -f ./event-registration-ui/k8s/apirule.yaml
  5. Update the values of the SENDGRID_API_KEY & SENDGRID_SENDER_EMAIL environment variables in the ./event-consumer/k8s/function.yaml file, which can be got from your SendGrid account.

  6. Create/update Kubernetes resources of the event-consumer serverless function.

    • kubectl apply -f ./event-consumer/k8s/function.yaml
  7. Create a Subscription to receive events. The subscription custom resource is used to subscribe to events.

    • kubectl apply -f ./event-registration-subscription/k8s/subscription.yaml
  8. Create/update Kubernetes resources of the event-emitter serverless function.

    • kubectl apply -f ./event-emitter/k8s/function.yaml