## 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
```
- docker
- docker安装
- 数据持久化
- 镜像管理
- Dockerfile
- 镜像的分层
- add copy
- 构建实例
- 镜像的导入导出
- 清理构建空间
- 配置阿里云加速器
- docker网络模型
- 本地仓库
- registry
- harbor
- IDEA部署docker
- 软件安装
- 安装es
- 安装MongoDB
- 安装rabbitmq
- 安装redis
- 安装nacos
- 安装mysql
- Minio
- 镜像中心
- kubernetes
- 1. 安装k8s
- 2.主要组件
- 3.污点
- 4.pod
- 5.控制器
- 6.网络
- 7.探针
- 8.安装Dashbord
- 9.secret
- 9.serviceAccount
- 10.service
- 资源清单
- kube-proxy
- flannel源文件
- 服务升级
- 笔记
- 镜像