move cert-manager and ingress-nginx from kubespray to separate modules, remove reset action and update observability template

This commit is contained in:
2024-04-28 00:25:30 +03:00
parent 6804fe3482
commit 6aac54a915
18 changed files with 4606 additions and 92 deletions

View File

@@ -8,6 +8,6 @@ func UpgradeCluster(tags string) {
runPlaybook("kubespray/project/upgrade_cluster.yml", tags)
}
func ResetCluster() {
runPlaybook("kubespray/project/reset.yml", "reset")
func ScaleCluster() {
runPlaybook("kubespray/project/scale.yml", "")
}

View File

@@ -16,7 +16,7 @@ func getPlaybookParameters(tags string) playbook.AnsiblePlaybookOptions {
cfg := config.GetConfig()
ansiblePlaybookOptions := playbook.AnsiblePlaybookOptions{
Inventory: "kubespray/inventory/hosts",
Inventory: filepath.Join(cfg.DataDir, "kubespray/inventory/hosts"),
Tags: tags,
User: cfg.Credentials.User,
Become: true,