-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cleanup instructions; Fixed some issues within the template
- Loading branch information
1 parent
cd70229
commit 20b3afb
Showing
4 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,46 @@ | ||
# Keptn Tempberry | ||
|
||
This is an example project for [Keptn](https://keptn.sh) for [Tempberry](https://github.com/ChristianKreuzberger/tempberry). | ||
|
||
## Prerequesits | ||
|
||
* A Kubernetes cluster (version 1.14 or 1.15) | ||
* A working Keptn 0.6.1 installation | ||
|
||
## Setup | ||
|
||
1. Specify for project name in a variable | ||
```console | ||
PROJECT=tempberry | ||
``` | ||
|
||
2. Create the project using Keptn Cli | ||
```console | ||
keptn create project $PROJECT --shipyard=shipyard.yaml | ||
``` | ||
|
||
3. Onboard postgres and tempberry-backend | ||
```console | ||
keptn create project ck-tempberry --shipyard=shipyard.yaml | ||
keptn onboard service postgres --project=$PROJECT --chart=./postgres --deployment-strategy=direct | ||
keptn onboard service tempberry-backend --project=$PROJECT --chart=./tempberry-backend | ||
``` | ||
|
||
keptn onboard service postgres --project=ck-tempberry --chart=./postgres --deployment-strategy=direct | ||
keptn onboard service tempberry-backend --project=ck-tempberry --chart=./tempberry-backend | ||
4. And finally, send new artifacts for postgres and tempberry-backend | ||
```console | ||
keptn send event new-artifact --project=$PROJECT --service=postgres --image=postgres:10.4 | ||
keptn send event new-artifact --project=$PROJECT --service=tempberry-backend --image=ckreuzberger/tempberry-backend:0.1 | ||
``` | ||
|
||
send new artifacts | ||
## Cleanup | ||
|
||
Make sure you have set the environment variable `$PROJECT` as specified in the Setup instructions above. | ||
|
||
```console | ||
keptn send event new-artifact --project=ck-tempberry --service=postgres --image=postgres:10.4 | ||
keptn send event new-artifact --project=ck-tempberry --service=tempberry-backend --image=ckreuzberger/tempberry-backend:master | ||
``` | ||
keptn delete project $PROJECT | ||
kubectl delete namespace $PROJECT-dev $PROJECT-hardening $PROJECT-production | ||
``` | ||
|
||
## License | ||
|
||
See [LICENSE](LICENSE). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ kind: Service | |
metadata: | ||
name: postgres | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 5432 | ||
selector: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters