mirror of
https://github.com/devitq/yandexcloud-k3s.git
synced 2026-09-20 21:40:34 +00:00
chore: restructured project
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
data "template_file" "k8s_main_master_cloud_init" {
|
||||
template = file("${path.module}/configs/cloud_init/main_master.yaml")
|
||||
vars = {
|
||||
k3s_credential_provider_config = base64encode(file("${path.module}/configs/k3s/credentialprovider.yaml"))
|
||||
k3s_credential_provider = base64encode(file("${path.module}/configs/k3s/yc-credential-provider"))
|
||||
k3s_dir = local.k3s_data_dir
|
||||
k3s_token = random_password.k3s_token.result
|
||||
yc_cloud_id = var.cloud_id
|
||||
}
|
||||
}
|
||||
|
||||
data "template_file" "k8s_master_cloud_init" {
|
||||
template = file("${path.module}/configs/cloud_init/master.yaml")
|
||||
vars = {
|
||||
k3s_credential_provider_config = base64encode(file("${path.module}/configs/k3s/credentialprovider.yaml"))
|
||||
k3s_credential_provider = base64encode(file("${path.module}/configs/k3s/yc-credential-provider"))
|
||||
k3s_dir = local.k3s_data_dir
|
||||
k3s_token = random_password.k3s_token.result
|
||||
k3s_master_ip = local.k8s_main_master_fqdn
|
||||
yc_cloud_id = var.cloud_id
|
||||
}
|
||||
}
|
||||
|
||||
data "template_file" "k8s_worker_cloud_init" {
|
||||
template = file("${path.module}/configs/cloud_init/worker.yaml")
|
||||
vars = {
|
||||
k3s_credential_provider_config = base64encode(file("${path.module}/configs/k3s/credentialprovider.yaml"))
|
||||
k3s_credential_provider = base64encode(file("${path.module}/configs/k3s/yc-credential-provider"))
|
||||
k3s_dir = local.k3s_data_dir
|
||||
k3s_token = random_password.k3s_token.result
|
||||
k3s_master_ip = local.k8s_main_master_fqdn
|
||||
yc_cloud_id = var.cloud_id
|
||||
}
|
||||
}
|
||||
|
||||
data "template_file" "frontend_api_gateway_spec" {
|
||||
template = file("${path.module}/configs/api_gateway/spec.yaml")
|
||||
vars = {
|
||||
bucket_name = yandex_storage_bucket.frontend.bucket
|
||||
}
|
||||
}
|
||||
|
||||
data "template_file" "frontend_develop_api_gateway_spec" {
|
||||
template = file("${path.module}/configs/api_gateway/spec.yaml")
|
||||
vars = {
|
||||
bucket_name = yandex_storage_bucket.frontend_develop.bucket
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user