This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
81 additions
and
23 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
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 |
---|---|---|
@@ -1,29 +1,37 @@ | ||
The first release of Kedge! | ||
0.3.0 of Kedge! | ||
|
||
If you haven't tried out Kedge yet, it's a concise way of creating application definitions for Kubernetes. | ||
Here's what's new in Kedge 0.3.0: | ||
|
||
Here's a simple example of using Kedge: | ||
- __Building Docker Images!__ Kedge now supports building Docker images | ||
- `extraResources` has been renamed to `includeResources` | ||
- Refactoring + documentation updates | ||
|
||
__Building Docker Images:__ | ||
|
||
Kedge will build (and optionally) push a Docker image, provided you are in the same directory as the `Dockerfile`. | ||
|
||
Using an [example](https://github.com/kedgeproject/kedge/tree/master/docs/examples/build): | ||
|
||
```sh | ||
$ vim httpd.yaml | ||
$ kedge build -i surajd/ticker:0.1 -p | ||
INFO[0000] Building image 'surajd/ticker:0.1' from directory 'build' | ||
INFO[0000] Image 'surajd/ticker:0.1' from directory 'build' built successfully | ||
INFO[0000] Pushing image "surajd/ticker:0.1" to registry "docker.io" | ||
INFO[0000] Multiple authentication credentials detected. Will try each configuration. | ||
INFO[0000] Attempting authentication credentials for "172.30.1.1:5000" | ||
ERRO[0003] Unable to push image "surajd/ticker:0.1" to registry "172.30.1.1:5000". Error: unauthorized: incorrect username or password | ||
INFO[0003] Attempting authentication credentials for "https://index.docker.io/v1/" | ||
INFO[0057] Successfully pushed image "surajd/ticker:0.1" to registry "https://index.docker.io/v1/" | ||
``` | ||
|
||
```yaml | ||
name: httpd | ||
containers: | ||
- image: centos/httpd | ||
services: | ||
- name: httpd | ||
type: NodePort | ||
ports: | ||
- port: 8080 | ||
targetPort: 80 | ||
``` | ||
Now you can use the same (built) image in Kubernetes: | ||
|
||
```sh | ||
$ kedge create -f httpd.yaml | ||
deployment "httpd" created | ||
service "httpd" created | ||
$ kedge create -f configs/ | ||
service "ticker" created | ||
deployment "ticker" created | ||
service "redis" created | ||
deployment "redis" created | ||
``` | ||
|
||
Now go try out Kedge! Go through our quick-start at [kedgeproject.org](http://kedgeproject.org) as well as our [documentation](https://github.com/kedgeproject/kedge/tree/master/docs). |
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