example: added README
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
2daff0ee74
commit
17ddf60bfc
54
examples/README.md
Normal file
54
examples/README.md
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Dagger Examples
|
||||||
|
|
||||||
|
## aws-eks: Kubernetes on AWS (EKS)
|
||||||
|
|
||||||
|
This example provisions a Kubernetes (EKS) cluster on AWS using Cloudformation,
|
||||||
|
it also outputs the new generated kubeconfig for the `kubectl` client.
|
||||||
|
|
||||||
|
How to run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
dagger compute ./aws-eks \
|
||||||
|
--input-string awsConfig.accessKey="MY_AWS_ACCESS_KEY" \
|
||||||
|
--input-string awsConfig.secretKey="MY_AWS_SECRET_KEY" \
|
||||||
|
| jq -j '.kubeconfig.kubeconfig' > kubeconfig
|
||||||
|
```
|
||||||
|
|
||||||
|
## aws-monitoring: HTTP Monitoring on AWS
|
||||||
|
|
||||||
|
This example implements a full HTTP(s) Monitoring solution on AWS using
|
||||||
|
Cloudformation and Cloudwatch Synthetics.
|
||||||
|
|
||||||
|
How to run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
dagger compute ./aws-monitoring \
|
||||||
|
--input-string awsConfig.accessKey="MY_AWS_ACCESS_KEY" \
|
||||||
|
--input-string awsConfig.secretKey="MY_AWS_SECRET_KEY" \
|
||||||
|
```
|
||||||
|
|
||||||
|
## kubernetes: Deploy to an existing Kubernetes cluster
|
||||||
|
|
||||||
|
This example shows two different ways for deploying to an existing Kubernetes
|
||||||
|
(EKS) cluster: a simple deployment spec (written in Cue), and a local helm
|
||||||
|
chart.
|
||||||
|
|
||||||
|
How to run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
dagger compute ./kubernetes \
|
||||||
|
--input-string awsConfig.accessKey="MY_AWS_ACCESS_KEY" \
|
||||||
|
--input-string awsConfig.secretKey="MY_AWS_SECRET_KEY" \
|
||||||
|
--input-dir helmChart.chart=./kubernetes/testdata/mychart
|
||||||
|
```
|
||||||
|
|
||||||
|
## react-netlify: Deploy a React Web app to Netlify
|
||||||
|
|
||||||
|
This example shows how to deploy a simple React App to Netlify.
|
||||||
|
|
||||||
|
How to run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
dagger compute ./react-netlify \
|
||||||
|
--input-string todoApp.account.token="MY_NETLIFY_API_TOKEN"
|
||||||
|
```
|
@ -1,12 +0,0 @@
|
|||||||
# Kubernetes on AWS (EKS)
|
|
||||||
|
|
||||||
This example creates a new EKS cluster and outputs its corresponding kubeconfig
|
|
||||||
|
|
||||||
## How to run
|
|
||||||
|
|
||||||
```sh
|
|
||||||
dagger compute . \
|
|
||||||
--input-string awsConfig.accessKey="MY_AWS_ACCESS_KEY" \
|
|
||||||
--input-string awsConfig.secretKey="MY_AWS_SECRET_KEY" \
|
|
||||||
| jq -j '.kubeconfig.kubeconfig' > kubeconfig
|
|
||||||
```
|
|
Reference in New Issue
Block a user