mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-08 23:08:40 +07:00
docs: add DNS example
This commit is contained in:
@ -10,6 +10,7 @@
|
|||||||
- [Prerequisites](./deployment/prerequisites.md)
|
- [Prerequisites](./deployment/prerequisites.md)
|
||||||
- [Configuration](./deployment/configuration.md)
|
- [Configuration](./deployment/configuration.md)
|
||||||
- [Deploy the homelab](./deployment/deployment.md)
|
- [Deploy the homelab](./deployment/deployment.md)
|
||||||
|
- [DNS setup](./deployment/dns.md)
|
||||||
- [Troubleshooting](./troubleshooting/README.md)
|
- [Troubleshooting](./troubleshooting/README.md)
|
||||||
- [PXE boot](./troubleshooting/pxe_boot.md)
|
- [PXE boot](./troubleshooting/pxe_boot.md)
|
||||||
- [Reference](./reference/README.md)
|
- [Reference](./reference/README.md)
|
||||||
|
30
docs/deployment/dns.md
Normal file
30
docs/deployment/dns.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# DNS setup
|
||||||
|
|
||||||
|
Some options for DNS config:
|
||||||
|
|
||||||
|
- Change the DNS config in your router
|
||||||
|
- Run your own DNS server in the cluster
|
||||||
|
- Change the DNS config in your domain registrar
|
||||||
|
|
||||||
|
For example here is my set up using the third option with Cloudflare, automated using Terraform:
|
||||||
|
|
||||||
|
```hcl
|
||||||
|
resource "cloudflare_record" "homelab_records" {
|
||||||
|
for_each = toset([
|
||||||
|
"*.knative",
|
||||||
|
"argocd",
|
||||||
|
"dex",
|
||||||
|
"git",
|
||||||
|
"grafana",
|
||||||
|
"tekton",
|
||||||
|
"vault",
|
||||||
|
# etc.
|
||||||
|
])
|
||||||
|
|
||||||
|
zone_id = cloudflare_zone.khuedoan_com.id
|
||||||
|
type = "A"
|
||||||
|
name = each.key
|
||||||
|
value = "192.168.1.150"
|
||||||
|
ttl = 1 # Auto
|
||||||
|
}
|
||||||
|
```
|
Reference in New Issue
Block a user