mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-22 10:19:21 +07:00
docs: add setup instruction for the external layer
This commit is contained in:
parent
a7e537ecf2
commit
70be424bac
29
external/README.md
vendored
29
external/README.md
vendored
@ -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
|
||||
```
|
||||
|
2
external/cloudflare.tf
vendored
2
external/cloudflare.tf
vendored
@ -1,6 +1,6 @@
|
||||
provider "cloudflare" {
|
||||
# Environment variables
|
||||
# CLOUDFLARE_API_KEY
|
||||
# CLOUDFLARE_API_TOKEN
|
||||
}
|
||||
|
||||
data "cloudflare_zone" "khuedoan_com" {
|
||||
|
Loading…
Reference in New Issue
Block a user