Skip to content

christian-kreuzberger-dtx/keptn-tempberry-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keptn Tempberry

This is an example project for Keptn for Tempberry.

Prerequesits

You need to have a Kubernetes cluster with a working Keptn 0.8.x installation (see https://keptn.sh/docs/quickstart/ steps 1 to 4)

Status

  • Create chart for postgres
  • Create chart for tempberry backend
  • Create chart for tempberry frontend
  • Create superuser on installation
  • Automatically run migrations (and roll them back if anything fails)
  • Create JMeter tests for tempberry backend
  • Run automated tests for installation in Keptn

Setup

  1. Specify for project name in a variable
PROJECT=tempberry
  1. Create the project using Keptn Cli
keptn create project $PROJECT --shipyard=./shipyard.yaml
  1. Onboard postgres and tempberry-backend
keptn onboard service postgres --project=$PROJECT --chart=./postgres
keptn onboard service tempberry-backend --project=$PROJECT --chart=./tempberry-backend
  1. Add SLO for hardening and tempberry-backend
keptn add-resource --project=$PROJECT --stage=hardening --service=tempberry-backend --resource=slo.yaml --resourceUri=slo.yaml
  1. And finally, send new artifacts for postgres and tempberry-backend
keptn trigger delivery --project=$PROJECT --service=postgres --image=postgres:10.4 --sequence=delivery-direct
keptn trigger delivery --project=$PROJECT --service=tempberry-backend --image=ckreuzberger/tempberry-backend:0.1

Cleanup

Make sure you have set the environment variable $PROJECT as specified in the Setup instructions above.

keptn delete project $PROJECT
kubectl delete namespace $PROJECT-dev $PROJECT-hardening $PROJECT-production

License

See LICENSE.