docker&k8s-配置/常用命令
[root@gitlab-server ~]# kubectl cluster-info --查看集群信息
Kubernetes master is running at https://192.168.27.22:5443
CoreDNS is running at https://192.168.27.22:5443/api/v1/namespaces/kube-system/services/coredns:dns/proxy
[root@gitlab-server ~]# kubectl get nodes --all-namespaces --查看节点
NAME STATUS ROLES AGE VERSION
192.168.109.243 Ready <none> 73d v1.13.7-r0-CCE2.0.24.B001
192.168.119.75 Ready slave 99d v1.13.7-r0-CCE2.0.24.B001
192.168.13.34 Ready <none> 73d v1.13.7-r0-CCE2.0.24.B001
192.168.39.197 Ready <none> 73d v1.13.7-r0-CCE2.0.24.B001
192.168.41.41 Ready <none> 73d v1.13.7-r0-CCE2.0.24.B001
192.168.44.182 Ready <none> 99d v1.13.7-r0-CCE2.0.24.B00
[root@gitlab-server ~]# kubectl get pod --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
demo-mml demo-mml-jp-minipay-core-1-77fbbbff4f-bzwmn 1/1 Running 0 73d
kubectl describe pod demo-mml-jp-minipay-core-1-77fbbbff4f-bzwmn -n demo-mml #例子,查pod是否正常
kubectl get pod,svc,ingress -n demo-mml -o wide --查看服务和调度和容器
[root@gitlab-server ~]# yum list installed|grep docker --查看安装的带docker的工具
containerd.io.x86_64 1.2.6-3.3.el7 @docker-ce-stable
docker-ce.x86_64 3:18.09.7-3.el7 @docker-ce-stable
docker-ce-cli.x86_64 1:18.09.7-3.el7 @docker-ce-stable
[root@gitlab-server ~]# kubectl version --kubelet版本
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.5", GitCommit:"2166946f41b36dea2c4626f90a77706f426cdea2", GitTreeState:"clean", BuildDate:"2019-03-25T15:26:52Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.7-r0-CCE2.0.24.B001", GitCommit:"6d6b92b05374cffe1efef44479ffa1ea72fc7aed", GitTreeState:"clean", BuildDate:"2019-07-18T08:24:49Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
最新文章
- Android Studio中获取查看签名SHA1证书指纹数据或MD5的方法
- codeforces 734E(DFS,树的直径(最长路))
- 数据库知识整理<;一>;
- jsp中使用动态数据进行mySQL数据库的两种操作方法
- POJ3273Monthly Expense(二分)
- pl/sql 程序块里打印问题
- start with connect by prior学习
- live555从RTSP服务器读取数据到使用接收到的数据流程分析
- 批处理基础知识-IF
- 关于springboot项目中自动注入,但是用的时候值为空的BUG
- Flask 系列之 SQLAlchemy
- iOS----------被拒原因
- windows更改Jupyter Notebook工作的目录
- 开源CFD并非万金油
- SpringIOC的小例子
- 《图说VR入门》——DeepoonVR的大鹏(陀螺仪)枪
- Maven学习——修改Maven的本地仓库路径
- 让QtCreator在调试时显示字符串 Qt调试助手 QtDebuggingHelper qtc-debugging-helper
- exportfs命令 NFS客户端问题 FTP介绍 使用vsftpd搭建ftp
- Tomorrow Is A New Day
热门文章
- 安装virtual box
- SpringCloud介绍及入门一
- Python_BDD概念
- OAuth 2.0 的四种方式
- Apache 后台服务器(主要处理php及一些功能请求 如:中文url) Nginx 前端服务器(利用它占用系统资源少得优势来处理静态页面大量请求) Lighttpd 图片服务器 总体来说,随着nginx功能得完善将使他成为今后web server得主流。
- android studio: 实现类似于XCode中的#pragma mark的效果
- SVG-JS操作
- QDateTime QString
- 华为OpenStack开源团队人才招募中
- SpringMVC+Ajax实现文件批量上传和下载功能实例代码