Skip to content

Commit

Permalink
Add Crossplane and part-04, use yq, change structure (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Sep 18, 2021
1 parent 611a0f0 commit 47d4945
Show file tree
Hide file tree
Showing 8 changed files with 472 additions and 132 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test-k8s-eks-flux.yml
Expand Up @@ -41,10 +41,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Create masks to hide parts in GH logs
run: |
echo "::add-mask::${{ secrets.MASK_AWS_ACCOUNT_NUMBER }}"
- name: Replace CLUSTER_NAME variable if defined manually
if: ${{ github.event.inputs.cluster_name }}
run: |
Expand Down
2 changes: 2 additions & 0 deletions .spelling
Expand Up @@ -11,6 +11,7 @@ CloudFormation
ClusterIssuers
codecentric
ConfigMap
crossplane
Crossplane
crossplane-stable
DependsOn
Expand Down Expand Up @@ -46,3 +47,4 @@ toc
values.yaml
Velero
Webhooks
yq
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Expand Up @@ -24,6 +24,7 @@ module.exports = {
'/part-01/',
'/part-02/',
'/part-03/',
'/part-04/',
'/part-cleanup/',
],
},
Expand Down
3 changes: 2 additions & 1 deletion docs/README.md
Expand Up @@ -18,4 +18,5 @@

* [Part 01 - Create initial AWS structure](part-01/README.md)
* [Part 02 - Create EKS cluster](part-02/README.md)
* [Part 03 - Applications](part-03/README.md)
* [Part 03 - Base Applications](part-03/README.md)
* [Part 04 - Applications](part-04/README.md)
13 changes: 12 additions & 1 deletion docs/part-01/README.md
Expand Up @@ -31,6 +31,8 @@ export COOKIE_SECRET
export SLACK_CHANNEL="mylabs"
# AWS Region
export AWS_DEFAULT_REGION="eu-west-1"
AWS_ACCOUNT_ID=${AWS_ACCOUNT_ID:-$(aws sts get-caller-identity --query Account --output text)}
export AWS_ACCOUNT_ID
# Set dev, prd, stg or eny other environment
export ENVIRONMENT=dev
# * "production" - valid certificates signed by Lets Encrypt ""
Expand Down Expand Up @@ -169,11 +171,20 @@ Install [Mozilla SOPS](https://github.com/mozilla/sops):

```bash
if ! command -v sops &> /dev/null; then
curl -sL "https://github.com/mozilla/sops/releases/download/v3.7.1/sops_3.7.1_amd64.deb" -o "/tmp/sops_amd64.deb"
curl -sL "https://github.com/mozilla/sops/releases/download/v3.7.1/sops_3.7.1_amd64.deb" -o /tmp/sops_amd64.deb
apt install -y /tmp/sops_amd64.deb > /dev/null
fi
```

Install [yq](https://mikefarah.gitbook.io/yq/):

```bash
if ! command -v yq &> /dev/null; then
curl -sL "https://github.com/mikefarah/yq/releases/download/v4.13.0/yq_$(uname | sed "s/./\L&/g")_amd64" -o /usr/local/bin/yq
chmod a+x /usr/local/bin/yq
fi
```

## Configure AWS Route 53 Domain delegation

> This should be done only once.
Expand Down

0 comments on commit 47d4945

Please sign in to comment.