wangpengfei
2023-05-31 68cb8dc5f3c5ba701187d0b69d69d09e19efbc68
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()