Skip to content

Latest commit

 

History

History

cx-c4c-ticket-event-handler

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

CX C4C Ticket Event handler example

Pre-requisites

Build and deployment steps

  1. Build the docker image of the c4c-mock microservice.

    • cd cx-c4c-ticket-event-handler/c4c-mock

    • docker build . -t <docker-username>/c4c-mock -f Dockerfile

    Note: Replace <docker-username> with your username

  2. Push the docker image of the c4c-mock microservice to your Container Image Library.

    • docker push <docker-username>/c4c-mock

    Note: Replace <docker-username> with your username

  3. Update the docker image in the ./c4c-mock/deployment/k8s.yaml file.

    Note: Replace <docker-username> with your username

  4. Create/update Kubernetes resources of the c4c-mock microservice.

    • kubectl apply -f ./c4c-mock/deployment/k8s.yaml
    • kubectl apply -f ./c4c-mock/deployment/kyma.yaml
  5. Update the values of the SENDGRID_API_KEY & SENDGRID_SENDER_EMAIL environment variables in the ./ticket-event-handler/k8s/function.yaml file, which can be got from your SendGrid account.

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

    • kubectl apply -f ./ticket-event-handler/k8s/function.yaml