Docker Kubernetes 查询字段说明
Docker Kubernetes 查询字段说明
- # 打印受支持的API版本
- kubectl api-versions
# 扩展
apiextensions.k8s.io/v1beta1
# 注册
apiregistration.k8s.io/v1beta1
# 创建app
apps/v1beta1
apps/v1beta2
# 认证
authentication.k8s.io/v1
authentication.k8s.io/v1beta1
# 授权
authorization.k8s.io/v1
authorization.k8s.io/v1beta1
# 弹性伸缩
autoscaling/v1
autoscaling/v2beta1
# 批量
batch/v1
batch/v1beta1
certificates.k8s.io/v1beta1
# 证书
extensions/v1beta1
# 网络
networking.k8s.io/v1
# 策略
policy/v1beta1
# 控制
rbac.authorization.k8s.io/v1
rbac.authorization.k8s.io/v1beta1
# 存储
storage.k8s.io/v1
storage.k8s.io/v1beta1
v1
- # 查看service 详细信息
- kubectl describe service 资源名
# 服务名称
Name: nginx
# 命名空间
Namespace: default
# 标签
Labels: run=nginx
Annotations: <none>
# 标签
Selector: run=nginx
# 网络代理类型
Type: ClusterIP
# 集群唯一IP
IP: 10.10.10.17
# Service端口
Port: <unset> 88/TCP
# 容器端口
TargetPort: 80/TCP
# 代理容器IP
Endpoints: 172.17.1.2:80,172.17.2.2:80,172.17.2.3:80
注:kubernetes默认负载均衡模式为ClusterIP。
注:标签主要是识别资源的描述符号。
注:显示集群信息 kubectl cluster-info 显示运行API情况。
- # 查看容器详细信息
- kubectl describe pod 容器名
# 容器名称
Name: hello-world-cc85d4fb6-9lnt9
# 命名空间
Namespace: default
# 分配节点IP
Node: 192.168.1.77/192.168.1.77
# 启动时间
Start Time: Thu, 15 Nov 2018 11:59:33 +0800
# 标签名称,系统生成标签
Labels: app=example
pod-template-hash=774180962
# 注释
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"default","name":"hello-world-cc85d4fb6","uid":"dc7d20d1-e88a-11e8-91e0-000c29e1b1...
# 状态
Status: Running
# 分配容器IP
IP: 172.17.1.3
# 由RS进行管理
Created By: ReplicaSet/hello-world-cc85d4fb6
Controlled By: ReplicaSet/hello-world-cc85d4fb6
# 容器信息
Containers:
hello-world:
# 容器ID
Container ID: docker://b05c00a8a840e8cf0ee4499ee9244282d500acf28ede13c76ff62c62baaa2057
# 镜像版本号
Image: nginx:1.10
Image ID: docker-pullable://nginx@sha256:6202beb06ea61f44179e02ca965e8e13b961d12640101fca213efbfd145d7575
# 开放端口
Port: 80/TCP
# 运行状态
State: Running
Started: Thu, 15 Nov 2018 12:00:04 +0800
Ready: True
Restart Count: 0
Environment: <none>
Mounts: <none>
# 容器信息
Conditions:
Type Status
Initialized True
Ready True
PodScheduled True
Volumes: <none>
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: <none>
Events: <none>
- # 显示有关Deployments详细信息
- kubectl describe deployments 资源名
# 服务名称
Name: hello-world
# 命名空间名称,一个命名空间相当与一个虚拟集群
Namespace: default
CreationTimestamp: Thu, 15 Nov 2018 11:59:33 +0800
# 加入一个标签
Labels: app=example
# 注释
Annotations: deployment.kubernetes.io/revision=1
# 标签选择器
Selector: app=example
# 副本数
Replicas: 3 desired | 3 updated | 3 total | 3 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 1 max unavailable, 1 max surge
# pod模板
Pod Template:
Labels: app=example
Containers:
hello-world:
# 容器镜像版本
Image: nginx:1.10
# 容器端口
Port: 80/TCP
Environment: <none>
Mounts: <none>
Volumes: <none>
Conditions:
Type Status Reason
---- ------ ------
# 执行时间记录
Available True MinimumReplicasAvailable
OldReplicaSets: <none>
NewReplicaSet: hello-world-cc85d4fb6 (3/3 replicas created)
Events: <none>
Docker Kubernetes 查询字段说明的更多相关文章
- Docker Kubernetes 项目
Kubernetes 是 Google 团队发起并维护的基于Docker的开源容器集群管理系统,它不仅支持常见的云平台,而且支持内部数据中心. 建于Docker之上的Kubernetes可以构建一个容 ...
- Docker Kubernetes 常用命令
Docker Kubernetes 常用命令 增 # 通过文件名或标准输入创建资源. kubectl create # 读取指定文件内容,进行创建.(配置文件可指定json,yaml文件). kube ...
- Docker Kubernetes 创建管理 Deployment
Docker Kubernetes YAML文件创建容器 通过创建Deployment来管理pods从而创建容器.它会同时创建容器.pod.以及Deployment ! 环境: 系统:Centos 7 ...
- Docker Kubernetes Volume 网络数据卷
Docker Kubernetes Volume 网络数据卷 由于支持网络数据卷众多 今天只拿nfs作为案例. 支持网络数据卷 nfs iscsi glusterfs awsElasticBlockS ...
- Docker Kubernetes Service 代理服务创建
Docker Kubernetes Service 代理服务创建 创建Service需要提前创建好pod容器.再创建Service时需要指定Pod标签,它会提供一个暴露端口默会分配容器内网访问的唯一 ...
- GitLab + Jenkins + Docker + Kubernetes。
目前方案是GitLab + Jenkins + Docker + Kubernetes. 方案的工作流程如下:首先,开发人员提交代码代码提交:随后,GitLab 会自动触发Jenkins job,Je ...
- Mybatis按SQL查询字段的顺序返回查询结果
在SpringMVC+Mybatis的开发过程中,可以通过指定resultType="hashmap"来获得查询结果,但其输出是没有顺序的.如果要按照SQL查询字段的顺序返回查询结 ...
- Oracle 查询字段在什么表
-- 查询字段在什么表 select * from all_tab_cols t where t.column_name='ABC'; -- 查询字段在什么表并且 判断是否是主键 select * f ...
- Docker&Kubernetes沙龙干货集锦:容器集群管理利器kubernetes详谈-CSDN.NET
Docker&Kubernetes沙龙干货集锦:容器集群管理利器kubernetes详谈-CSDN.NET undefined Package - crawler undefined 科学网- ...
随机推荐
- C#Windows Service程序的创建安装与卸载
C#Windows Service程序的创建安装与卸载 一.开发环境 操作系统:Windows7x64 sp1 专业版 开发环境:Visual studio 2013 编程语言:C# .NET版本: ...
- CTF的一道安卓逆向
前几天打CTF时遇到的一道安卓逆向,这里简单的写一下思路 首先用jadx打开apk文件,找到simplecheck处(文件名是simplecheck),可以看到基本逻辑就是通过函数a对输入的内容进行判 ...
- linux基础操作1
date #查看日期cal #查看当月日历cal 2017 #查看某年全年的日历whoami #查看当前登录的用户 #修改网卡,可以上网的步骤vi /etc/sysconfig/network-scr ...
- 13.vue组件
vue组件(一) 组件嵌套: 1.全局嵌套: <!doctype html> <html> <head> <meta charset="utf-8& ...
- python全栈开发 * 27知识点汇总 * 180710
27 time os sys 模块 time 模块 一.表示时间的三种方式 时间戳(timestamp), 元组(struct_time),格式化时间字符串(Format string) 小 ...
- intput/output 文件的复制练习
import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStrea ...
- AngularJS资源合集[备忘]【申明:来源于网络】
AngularJS资源合集[备忘][申明:来源于网络] 地址:http://blog.csdn.net/allgis/article/details/44646597
- Python------mysql数据库
import pymysql #一.直接连接mysql数据库'''coon=pymysql.connect(host='192.168.*.*',user='root',password='12345 ...
- Mycat原理、应用场景
Mycat原理 Mycat的原理并不复杂,复杂的是代码,如果代码也不复杂,那么早就成为一个传说了.Mycat的原理中最重要的一个动词是“拦截”,它拦截了用户发送过来的SQL语句,首先对SQL语句做了一 ...
- TypeScript笔记
#安装typescript [1] npm install -g typescript #编译typescript tsc test.ts //会生成test.js文件 #泛型,即使用“类型变量”,函 ...