ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 1、k8s无法启动应用 ![](https://img.kancloud.cn/f5/10/f510b3742b65daef7ae8fb16d0e7935d_1429x478.png) **这控制器(deployment)已经存在** 1、首先看一下有哪些名称空间 ``` [yunwei@paas-crm-docker-101 ~]$ kubectl get namespaces NAME STATUS AGE default Active 21d kube-public Active 21d kube-system Active 21d monitoring Active 20d ns-2 Active 9d ``` 1、查找一下pod ``` /app/data/ips/app/kubernetes/bin/kubectl -s http://136.160.160.22:8080 get pods -n ns-6 | grep inst ``` -s:指定api server,与master在同一台服务器上,端口8080 ``` inst-service-1-controller-6f6c784bf5-87wln 1/1 Running 0 1d inst-service-b-1-controller-b877db8cb-znmpz 1/1 Running 0 2d inst-service-c-1-controller-75fccd6f9c-2k842 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-447p8 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-4f9gz 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-4nfqc 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-7jmr6 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-9bh7w 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-cbwtq 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-ggfv9 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-gzkfl 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-jx52r 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-kclh7 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-mbbwc 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-mrdrs 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-pp6kk 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-rvj89 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-rxmll 1/1 Running 0 14h inst-service-c-1-controller-75fccd6f9c-s8b8b 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-tkdn2 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-w69mt 1/1 Running 0 11h inst-service-c-1-controller-75fccd6f9c-z2lt6 1/1 Running 0 11h inst-time-task-1-controller-667d767c5c-w6stn 1/1 Running 0 17h ``` 2、查找deployment ``` [root@paas-crm-docker-002 ~]# /app/data/ips/app/kubernetes/bin/kubectl -s http://136.160.160.22:8080 get deployment -n ns-6 | grep inst inst-service-1-controller 1 1 1 1 1d inst-service-b-1-controller 1 1 1 1 2d inst-service-c-1-controller 20 20 20 20 14h inst-time-task-1-controller 1 1 1 1 17h ``` 3、删除这个deployment,服务可以正常启动了 ``` [root@paas-crm-docker-002 ~]# /app/data/ips/app/kubernetes/bin/kubectl -s http://136.160.160.22:8080 -n ns-6 delete deployment inst-time-task-1-controller deployment.extensions "inst-time-task-1-controller" deleted ```