Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Cleanup and reorganize examples #222

Merged
merged 3 commits into from
Aug 17, 2017
Merged

Conversation

kadel
Copy link
Member

@kadel kadel commented Aug 14, 2017

As discussed in #136 this splits examples directory into two parts.

docs/examples

Usage (spec) examples that are just showcasing Kedge features.
Those examples can sometimes use unnecessarily complicated constructs to highlight some of the Kedge features.

/examples

This should contain only real-world examples. It will become a library of Kedge Apps, where users can learn best practices from real examples. Those examples should use just constructs that make sense for given examples and keep the definition as clean as possible.

@kadel
Copy link
Member Author

kadel commented Aug 15, 2017

@pradeepto pradeepto added this to the 0.2.0 milestone Aug 15, 2017
@@ -0,0 +1,33 @@
name: web
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo in file name - s/wordpres.yaml/wordpress.yaml

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx, fixed

@concaf
Copy link
Collaborator

concaf commented Aug 16, 2017

Looks fine to me, will let @pradeepto do an LGTM wrt UX and structure.

@pradeepto
Copy link
Member

@kadel I have reviewed it. But would really like to have a native English speaker review this before we merge this since it is so important, especially the demo example.

@cdrage Can you have a look? Pending that, we should merge this.

targetPort: 80
```

It is list of [service spec](https://kubernetes.io/docs/api-reference/v1.6/#servicespec-v1-core), which means that each app can have multiple services defined. Also see that ports are defined in the `services` field and not in the containers. You can choose to declare ports in the `containers.ports` as well but it is not required.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is a list of

can contain multiple services defined

Ports are defined in the services filed but not in the container field

declare ports in

as well, but it is not required


# Guestbook demo

This is demo application to show 3 tier web application.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a demo application to show a 3-tier web application

This is demo application to show 3 tier web application.


You can find more information https://github.com/kadel/guestbook-demo
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can find more information at


`mariadb.yaml` defines two Secrets (`database-root-password` and `database-user-password`) and one ConfigMap (`mariadb`).
`wordprss.yaml` gets information on how to connect to database from `database-user-password` Secret and `mariadb` ConfigMap.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wordpress

@kadel
Copy link
Member Author

kadel commented Aug 16, 2017

thx @cdrage for looking at this

everything that you pointed out should be fixed

@cdrage
Copy link
Collaborator

cdrage commented Aug 16, 2017

LGTM. Merge whenever!

@surajssd surajssd merged commit a21537c into kedgeproject:master Aug 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants