Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5bb1856

Browse files
committedAug 19, 2020
checkpoint readme
1 parent 1a78950 commit 5bb1856

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed
 

‎README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## About this repo
2+
3+
Contains slides and some demo code for the Kubecon EU 2020 talk "Ingress on the Rails"
4+
5+
The demo code sets up external-dns using the deployment pattern described in the talk, of calling `helm template | kustomize | kubectl apply` to support multiple K8s clusters. Similar tools are emerging like [helm post-rendering](https://helm.sh/docs/topics/advanced/#post-rendering) and [Ship](https://github.com/replicatedhq/ship)
6+
7+
## Using this code
8+
9+
Hopefully everything works as is on GKE except you need to change the project ID - replace all instances of afirth-kceu2020 with your project ID. Helm 2, sops, and GNU make are required for code generation.
10+
11+
## Clusters
12+
13+
`./clusters` has some scripts to make some GKE clusters if you want to demo this as is.
14+
15+
#TODO
16+
-add sops image
17+
-add triggers + info
18+
-add diffing CI
19+
-add CD
20+
-add external-dns
21+
-add sample ingress

‎clusters/README.md

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
## Clusters
22

3-
Included for reproducibility are cluster creation scripts for GKE. These scripts create a basic cluster, add a node pool, and grant cloudbuild permissions.
3+
Included for reproducibility are cluster creation scripts for GKE. These scripts create two basic clusters named bravo and delta, add a node pool, and grant cloudbuild permissions.
44

5-
1. Run make in `/templates` for each cluster
6-
1. Commit and run the generated scripts
5+
1. Run make (with GNU make you heathens) in `/templates` for each cluster
6+
```bash
7+
$ make -C templates CLUSTER=gke_afirth-kceu2020_europe-west1-d_bravo
8+
$ make -C templates CLUSTER=gke_afirth-kceu2020_europe-west1-d_delta
9+
```
10+
11+
2. Commit and run the generated scripts
12+
```bash
13+
$ ./generated/setup_scripts/gke_afirth-kceu2020_europe-west1-d_bravo/cluster-create.sh
14+
# wait some minutes or background it and move on
15+
$ ./generated/setup_scripts/gke_afirth-kceu2020_europe-west1-d_delta/cluster-create.sh
16+
# wait until both are created before applying permissions
17+
18+
$ ./generated/setup_scripts/gke_afirth-kceu2020_europe-west1-d_bravo/cluster-permissions.sh
19+
$ ./generated/setup_scripts/gke_afirth-kceu2020_europe-west1-d_delta/cluster-permissions.sh
20+
```
721

822
It's like infra as code, only worse

0 commit comments

Comments
 (0)
Please sign in to comment.