2021-10-28 18:15:01 +00:00
|
|
|
resource "linode_lke_cluster" "stg-video-cluster" {
|
|
|
|
|
label = "stg-video-cluster"
|
2021-07-13 17:06:50 +00:00
|
|
|
k8s_version = "1.21"
|
|
|
|
|
region = "us-central"
|
|
|
|
|
tags = ["staging"]
|
2021-06-25 16:26:10 +00:00
|
|
|
|
2021-07-13 17:06:50 +00:00
|
|
|
pool {
|
|
|
|
|
type = "g6-standard-2"
|
2021-10-28 18:15:01 +00:00
|
|
|
count = 1
|
2021-07-13 17:06:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# WebRTC-BE pool
|
|
|
|
|
pool {
|
|
|
|
|
type = "g6-standard-2"
|
2021-10-28 18:15:01 +00:00
|
|
|
count = 1
|
2021-07-13 17:06:50 +00:00
|
|
|
}
|
|
|
|
|
# Coturn pool
|
|
|
|
|
pool {
|
|
|
|
|
type = "g6-standard-2"
|
2021-07-16 15:15:34 +00:00
|
|
|
count = 1
|
2021-07-13 17:06:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2021-07-16 15:15:34 +00:00
|
|
|
|
2021-10-29 17:59:36 +00:00
|
|
|
provider "kubernetes" {
|
|
|
|
|
config_path = "../k8s/stg-video-cluster-kubeconfig.yaml"
|
|
|
|
|
alias = "cluster-staging"
|
|
|
|
|
}
|
2021-10-30 14:04:16 +00:00
|
|
|
|
|
|
|
|
resource "kubernetes_namespace" "external-dns" {
|
|
|
|
|
metadata {
|
|
|
|
|
name = "external-dns"
|
|
|
|
|
}
|
|
|
|
|
provider = kubernetes.cluster-staging
|
|
|
|
|
}
|
2021-10-29 17:59:36 +00:00
|
|
|
|
|
|
|
|
resource "kubernetes_secret" "aws_user_external_dns" {
|
|
|
|
|
metadata {
|
2021-10-30 14:04:16 +00:00
|
|
|
name = "aws-user-external-dns"
|
|
|
|
|
namespace = "external-dns"
|
2021-10-29 17:59:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
data = {
|
|
|
|
|
username = aws_iam_access_key.lke-external-dns.id
|
|
|
|
|
password = aws_iam_access_key.lke-external-dns.secret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type = "kubernetes.io/basic-auth"
|
|
|
|
|
provider = kubernetes.cluster-staging
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-30 18:21:19 +00:00
|
|
|
resource "linode_lke_cluster" "prd-video-cluster" {
|
|
|
|
|
label = "prd-video-cluster"
|
|
|
|
|
k8s_version = "1.21"
|
|
|
|
|
region = "us-central"
|
|
|
|
|
tags = ["production"]
|
|
|
|
|
|
|
|
|
|
pool {
|
|
|
|
|
type = "g6-standard-2"
|
|
|
|
|
count = 3
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# WebRTC-BE pool
|
|
|
|
|
pool {
|
|
|
|
|
type = "g6-standard-2"
|
|
|
|
|
count = 3
|
|
|
|
|
}
|
|
|
|
|
# Coturn pool
|
|
|
|
|
pool {
|
|
|
|
|
type = "g6-standard-2"
|
|
|
|
|
count = 3
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|