docs: add setup instruction for the external layer

This commit is contained in:
Khue Doan 2021-12-09 01:51:42 +07:00
parent a7e537ecf2
commit 70be424bac
2 changed files with 24 additions and 7 deletions

29
external/README.md vendored
View File

@ -1,13 +1,30 @@
# External resources
> WIP documents
This layer will deploy resources that require external dependencies using the following provisioners:
Terraform:
- Terraform:
- Create external resources
- Add external secrets to namespaces
- Create an ApplicationSet
- ArgoCD (via the ApplicationSet created by Terraform):
- Deploy Helm charts in the subdirectories
- Create external resources
- Add external secrets to namespaces
- Create an ApplicationSet
## Setup
ArgoCD (via the ApplicationSet created by Terraform):
- Create Terraform Cloud workspace
- Run `terraform login`
- Create Cloudflare key at <https://dash.cloudflare.com/profile/api-tokens>
- Create Backblaze key at <https://secure.backblaze.com/app_keys.htm>
- Deploy Helm charts in the subdirectories
```sh
export CLOUDFLARE_API_TOKEN='xxx'
export B2_APPLICATION_KEY_ID='xxx'
export B2_APPLICATION_KEY='xxx'
export KUBE_CONFIG_PATH="$PWD/../metal/kubeconfig.yaml"
```
```sh
terraform apply
```

View File

@ -1,6 +1,6 @@
provider "cloudflare" {
# Environment variables
# CLOUDFLARE_API_KEY
# CLOUDFLARE_API_TOKEN
}
data "cloudflare_zone" "khuedoan_com" {