cheliequan
2023-05-24 632954f9bd2aed21a566d114ed64b5bce4dedb1b
src/k8s/delete.go
@@ -13,14 +13,11 @@
   "k8s.io/client-go/tools/clientcmd"
)
var (
   replicas      int32 = 3
   port          int32 = 9081
   namespaces          = []string{"guangsheng", "geruimi", "tongsheng"}
   usedNodePorts       = make(map[int32]bool)
)
func main() {
func delete_test() {
        var (
           namespaces          = []string{"guangsheng", "geruimi", "tongsheng"}
        )
   // 配置 Kubernetes 集群的 kubeconfig 路径
   kubeconfig := flag.String("kubeconfig", filepath.Join(util.HomeDir(), ".kube", "config"), "kubeconfig file")
   flag.Parse()