prvng_kcl/cluster.k
2025-10-07 11:17:54 +01:00

34 lines
918 B
Plaintext

# Info: KCL core lib cluster schemas for provisioning (Provisioning)
# Author: JesusPerezLorenzo
# Release: 0.0.4
# Date: 15-12-2023
import .lib
schema Cluster:
"""
cluster settings
"""
not_use: bool = False
name: str
version: str
# Template deployment path in $PROVISIONING/templates
template?: "k8s-deploy" | ""
# Schema definition values
def: "K8sDeploy" | "" = ""
# Services Save path or use main settings
clusters_save_path?: str
# Profile to use
profile?: str
# host to admin cluster
admin_host?: str
# Cluster clusters admin hosts port to connect via SSH
admin_port?: int
# Cluster clusters admin user connect via SSH
admin_user?: str
ssh_key_path?: str
# cluster local definition_path directory
local_def_path: str = "./clusters/${name}"
# Scale mode settings for lib-ScaleResource
scale?: lib.ScaleResource