- Install Docker (or any other Container tool).
- Create an account at https://hub.docker.com/ (or any other Container Image Library).
- Create a SendGrid account for sending emails.
- Get a Free Account on SAP BTP Trial.
- Enable SAP BTP, Kyma Runtime.
- Download and install the Kubernetes Command Line Tool.
- Test the kubectl installation.
- Download the Kyma runtime kubeconfig.
-
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 -
-
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 - docker push
-
Update the docker image in the ./event-registration-ui/k8s/deployment.yaml file.
Note: Replace
<docker-username>
with your username -
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
-
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. -
Create/update Kubernetes resources of the event-consumer serverless function.
- kubectl apply -f ./event-consumer/k8s/function.yaml
-
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
-
Create/update Kubernetes resources of the event-emitter serverless function.
- kubectl apply -f ./event-emitter/k8s/function.yaml