add k8s-admin config copy and add requirements
This commit is contained in:
@@ -32,7 +32,6 @@ func main() {
|
|||||||
switch cmd {
|
switch cmd {
|
||||||
case "apply":
|
case "apply":
|
||||||
kubespray.InstallCluster("")
|
kubespray.InstallCluster("")
|
||||||
kubespray.CopyK8SAdminConfig("k8s-admin.conf")
|
|
||||||
return
|
return
|
||||||
case "apply-modules":
|
case "apply-modules":
|
||||||
kubespray.InstallCluster("helm-apps")
|
kubespray.InstallCluster("helm-apps")
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
func InstallCluster(tags string) {
|
func InstallCluster(tags string) {
|
||||||
runPlaybook("kubespray/project/cluster.yml", tags)
|
runPlaybook("kubespray/project/cluster.yml", tags)
|
||||||
|
CopyK8SAdminConfig("k8s-admin.conf")
|
||||||
config := config.GetConfig()
|
config := config.GetConfig()
|
||||||
if config.Modules.SecretsStorage.Enabled {
|
if config.Modules.SecretsStorage.Enabled {
|
||||||
fmt.Println("## Additional Vault Configuration")
|
fmt.Println("## Additional Vault Configuration")
|
||||||
@@ -20,8 +20,10 @@ func InstallCluster(tags string) {
|
|||||||
|
|
||||||
func UpgradeCluster(tags string) {
|
func UpgradeCluster(tags string) {
|
||||||
runPlaybook("kubespray/project/upgrade_cluster.yml", tags)
|
runPlaybook("kubespray/project/upgrade_cluster.yml", tags)
|
||||||
|
CopyK8SAdminConfig("k8s-admin.conf")
|
||||||
}
|
}
|
||||||
|
|
||||||
func ScaleCluster() {
|
func ScaleCluster() {
|
||||||
runPlaybook("kubespray/project/scale.yml", "")
|
runPlaybook("kubespray/project/scale.yml", "")
|
||||||
|
CopyK8SAdminConfig("k8s-admin.conf")
|
||||||
}
|
}
|
||||||
|
|||||||
10
requirements.txt
Normal file
10
requirements.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
ansible==9.5.1
|
||||||
|
cryptography==41.0.4
|
||||||
|
jinja2==3.1.4
|
||||||
|
jmespath==1.0.1
|
||||||
|
MarkupSafe==2.1.5
|
||||||
|
netaddr==1.2.1
|
||||||
|
pbr==5.11.1
|
||||||
|
ruamel.yaml==0.18.6
|
||||||
|
ruamel.yaml.clib==0.2.8
|
||||||
|
jsonschema==4.22.0
|
||||||
Reference in New Issue
Block a user