mirror of
https://github.com/devitq/yandexcloud-k3s.git
synced 2026-09-20 18:10:34 +00:00
chore(): updated main master name
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
resource "terraform_data" "k8s_main_master_user_data" {
|
||||
input = templatefile("${path.module}/configs/cloud_init/main_master.yaml", {
|
||||
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_fqdn = var.cluster_domain
|
||||
yc_cloud_id = var.cloud_id
|
||||
})
|
||||
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_fqdn = var.cluster_domain
|
||||
yc_cloud_id = var.cloud_id
|
||||
})
|
||||
}
|
||||
|
||||
resource "yandex_compute_instance" "k8s_main_master" {
|
||||
name = "master-k8s"
|
||||
name = "master-0-ru-central1-d-k8s"
|
||||
hostname = local.k8s_main_master_fqdn
|
||||
description = "Salt, ansible and kubernetes master, provisions other nodes"
|
||||
platform_id = "standard-v3"
|
||||
@@ -77,7 +77,7 @@ resource "yandex_compute_instance" "k8s_main_master" {
|
||||
enable-oslogin = true
|
||||
serial-port-enable = 1
|
||||
install-unified-agent = 0
|
||||
user-data = terraform_data.k8s_main_master_user_data.output
|
||||
user-data = terraform_data.k8s_main_master_user_data.output
|
||||
}
|
||||
|
||||
metadata_options {
|
||||
|
||||
Reference in New Issue
Block a user