贝隆

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  148 随笔 :: 0 文章 :: 2 评论 :: 14万 阅读

 kubectl get pods --all-namespaces

kubectl describe pod kube-proxy-j5ll5 -n kube-system

 kubectl logs --previous kube-proxy-j5ll5 -n kube-system

 

https://www.cnblogs.com/berry-ma/p/9265871.html 

 

https://serverfault.com/questions/1063166/kube-proxy-wont-start-in-minikube-because-of-permission-denied-issue-with-proc

kubectl edit configmap kube-proxy --namespace=kube-system

 

 kubectl describe pod  kubernetes-dashboard-897c7599f-ldpr4 -n kubernetes-dashboard

#重启Pod

kubectl get pod {podname} -n {namespace} -o yaml | kubectl replace --force -f -

 

#删除depolyment

[root@test2 ~]# kubectl get deployment -n jenkins
NAME       DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
jenkins2   1         1         1            1           17h
[root@test2 ~]# kubectl delete deployment jenkins2 -n jenkins

ubu@ubu2004:~$ kubectl get deployment -n kubernetes-dashboard
NAME READY UP-TO-DATE AVAILABLE AGE
dashboard-metrics-scraper 1/1 1 1 20d
kubernetes-dashboard 0/1 1 0 20d

kubectl delete deployment kubernetes-dashboard -n kubernetes-dashboard



kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml

ubu@ubu2004:~$ kubectl get svc --all-namespaces
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 20d
kube-system kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP,9153/TCP 20d
kubernetes-dashboard dashboard-metrics-scraper ClusterIP 10.107.1.28 <none> 8000/TCP 20d
kubernetes-dashboard kubernetes-dashboard ClusterIP 10.109.238.148 <none> 443/TCP 20d

 

#由CluserIP改为 nodePort方式访问

 



 kubectl delete service kubernetes-dashboard --namespace=kubernetes-dashboard

 

posted on   贝隆  阅读(51)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 什么是nginx的强缓存和协商缓存
· 一文读懂知识蒸馏
· Manus爆火,是硬核还是营销?
历史上的今天:
2017-02-03 httpclient的maven依赖
2017-02-03 阿里云maven仓库镜像
点击右上角即可分享
微信分享提示