## 1、k8s無法啟動應用

**這控制器(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源文件
- 服務升級
- 筆記
- 鏡像