This commit is contained in:
2024-03-26 12:17:33 +03:00
parent f49d9f8860
commit 91ba361af9
97 changed files with 6127 additions and 5997 deletions

View File

@@ -0,0 +1,9 @@
---
users:
- groups: users, wheel
name: user
plain_text_passwd: examplePassword
primary_group: user
ssh_authorized_keys:
- ssh-rsa EXAMPLE%id_rsa.pub
sudo: ALL=(ALL) NOPASSWD:ALL

View File

@@ -18,6 +18,8 @@ provider "decort" {
controller_url = "https://ds1.digitalenergy.online"
#oauth2_url = <DECORT_SSO_URL>
oauth2_url = "https://sso.digitalenergy.online"
#app_id = <APP-ID>
#app_secret = <APP-SECRET>
allow_unverified_ssl = true
}
@@ -31,7 +33,7 @@ resource "decort_k8s" "cluster" {
#id resource group
#обязательный параметр
#тип - число
rg_id = 776
rg_id = 907
#id catalogue item
#обязательный параметр
@@ -282,6 +284,11 @@ resource "decort_k8s" "cluster" {
# опциональный параметр
# тип - булев тип
start = true
# команда destroy удаляет кластер без возможности восстановления
# опциональный параметр
# тип - булев тип
permanently = true
}
output "test_cluster" {