Files
kube-forge/cmd/scale.go

22 lines
378 B
Go

package cmd
import (
"kube-forge/internal/kubespray"
"kube-forge/internal/templates"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(scaleCmd)
}
var scaleCmd = &cobra.Command{
Use: "scale",
Short: "Scale cluster. Use when adding new nodes",
Run: func(cmd *cobra.Command, args []string) {
templates.ApplyK8sTemplates()
kubespray.ScaleCluster()
},
}