Compare commits
3 Commits
feature/gl
...
main
Author | SHA1 | Date |
---|---|---|
Ariadne Conill | 9882b0a2da | |
Ariadne Conill | 3fa93e7d00 | |
Ariadne Conill | 438ec1367e |
38
dns/main.tf
38
dns/main.tf
|
@ -26,25 +26,6 @@ resource "linode_domain" "treehouse_domain" {
|
|||
type = "master"
|
||||
}
|
||||
|
||||
// Treehouse cluster: kn-linode-dallas
|
||||
// TODO(ariadne): Use linode data source to pull the kubernetes ingress
|
||||
// IP addresses for this
|
||||
resource "linode_domain_record" "kn_linode_dallas_ingress_v4" {
|
||||
domain_id = "${linode_domain.treehouse_domain.id}"
|
||||
name = "kn-linode-dallas.ingress"
|
||||
record_type = "A"
|
||||
target = "50.116.20.32"
|
||||
ttl_sec = 30
|
||||
}
|
||||
|
||||
resource "linode_domain_record" "kn_linode_dallas_ingress_v6" {
|
||||
domain_id = "${linode_domain.treehouse_domain.id}"
|
||||
name = "kn-linode-dallas.ingress"
|
||||
record_type = "AAAA"
|
||||
target = "2600:3c00::f03c:93ff:fee2:d097"
|
||||
ttl_sec = 30
|
||||
}
|
||||
|
||||
// Treehouse cluster: kn-oci-sanjose
|
||||
// TODO(ariadne): decommission me
|
||||
resource "linode_domain_record" "kn_oci_sanjose_ingress_v4" {
|
||||
|
@ -63,6 +44,23 @@ resource "linode_domain_record" "kn_oci_sanjose_ingress_v6" {
|
|||
ttl_sec = 30
|
||||
}
|
||||
|
||||
// Treehouse cluster: kn-sfo2
|
||||
resource "linode_domain_record" "kn_sfo2_ingress_v4" {
|
||||
domain_id = "${linode_domain.treehouse_domain.id}"
|
||||
name = "kn-sfo2.ingress"
|
||||
record_type = "A"
|
||||
target = "104.250.236.4"
|
||||
ttl_sec = 30
|
||||
}
|
||||
|
||||
resource "linode_domain_record" "kn_sfo2_ingress_v6" {
|
||||
domain_id = "${linode_domain.treehouse_domain.id}"
|
||||
name = "kn-sfo2.ingress"
|
||||
record_type = "AAAA"
|
||||
target = "2602:fd37:1:0:104:250:236:4"
|
||||
ttl_sec = 30
|
||||
}
|
||||
|
||||
// Treehouse services: Gitea
|
||||
resource "linode_domain_record" "gitea_v4" {
|
||||
domain_id = "${linode_domain.treehouse_domain.id}"
|
||||
|
@ -93,7 +91,7 @@ resource "linode_domain_record" "social_cname" {
|
|||
domain_id = "${linode_domain.treehouse_domain.id}"
|
||||
name = "social"
|
||||
record_type = "CNAME"
|
||||
target = "kn-linode-dallas.ingress.treehouse.systems"
|
||||
target = "kn-sfo2.ingress.treehouse.systems"
|
||||
ttl_sec = 30
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue