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 查询字段说明的更多相关文章

  1. Docker Kubernetes 项目

    Kubernetes 是 Google 团队发起并维护的基于Docker的开源容器集群管理系统,它不仅支持常见的云平台,而且支持内部数据中心. 建于Docker之上的Kubernetes可以构建一个容 ...

  2. Docker Kubernetes 常用命令

    Docker Kubernetes 常用命令 增 # 通过文件名或标准输入创建资源. kubectl create # 读取指定文件内容,进行创建.(配置文件可指定json,yaml文件). kube ...

  3. Docker Kubernetes 创建管理 Deployment

    Docker Kubernetes YAML文件创建容器 通过创建Deployment来管理pods从而创建容器.它会同时创建容器.pod.以及Deployment ! 环境: 系统:Centos 7 ...

  4. Docker Kubernetes Volume 网络数据卷

    Docker Kubernetes Volume 网络数据卷 由于支持网络数据卷众多 今天只拿nfs作为案例. 支持网络数据卷 nfs iscsi glusterfs awsElasticBlockS ...

  5. Docker Kubernetes Service 代理服务创建

    Docker Kubernetes  Service 代理服务创建 创建Service需要提前创建好pod容器.再创建Service时需要指定Pod标签,它会提供一个暴露端口默会分配容器内网访问的唯一 ...

  6. GitLab + Jenkins + Docker + Kubernetes。

    目前方案是GitLab + Jenkins + Docker + Kubernetes. 方案的工作流程如下:首先,开发人员提交代码代码提交:随后,GitLab 会自动触发Jenkins job,Je ...

  7. Mybatis按SQL查询字段的顺序返回查询结果

    在SpringMVC+Mybatis的开发过程中,可以通过指定resultType="hashmap"来获得查询结果,但其输出是没有顺序的.如果要按照SQL查询字段的顺序返回查询结 ...

  8. Oracle 查询字段在什么表

    -- 查询字段在什么表 select * from all_tab_cols t where t.column_name='ABC'; -- 查询字段在什么表并且 判断是否是主键 select * f ...

  9. Docker&Kubernetes沙龙干货集锦:容器集群管理利器kubernetes详谈-CSDN.NET

    Docker&Kubernetes沙龙干货集锦:容器集群管理利器kubernetes详谈-CSDN.NET undefined Package - crawler undefined 科学网- ...

随机推荐

  1. Win8驱动的兼容性问题

    引用注明>> [作者:张佩][原文:www.yiiyee.cn/blog] 最近我发现为Win8开发的驱动程序,有些能安装在Win7上(包括更早系统),有些则不能.那些不能安装的情况很可怕 ...

  2. JDBC driver for MySQL连接提示"The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'convertToNull' is not acceptable."解决方案

    1.使用了8.0以上版本的JDBC driver for MySQL,降回5.x版本. 2.不对JDBC driver for MySQL降级.修改数据库连接字符串,添加serverTimezone属 ...

  3. 基于VS Code快速搭建Java项目

    有时候随手想写一点Java测试代码,以控制台程序为主,还会用到一些其它框架,并基于Maven构建. 1.Java Extension Pack一定要安装. 2.VS Code打开一个指定目录,创建相应 ...

  4. UnicodeEncodeError: 'latin-1' codec can't encode characters in position 41-50: ordinal not in range(256)

    在处理标题或网址为中文的文件或网页的时候,报UnicodeEncodeError: 'latin-1' codec can't encode characters in position 41-50: ...

  5. D - Nearest Common Ancestors

    A rooted tree is a well-known data structure in computer science and engineering. An example is show ...

  6. Java远程连接redis, 报错 Connection refused: connect

    在今天的学习Redis中报错 Connection refused: connect 我总结了有三种情况: 1.远程服务器中的Redis没有开启. 2.远程连接地址出错,或者是端口出错. 3.远程服务 ...

  7. Javascript实现MD5加密

    /* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as d ...

  8. F#周报2019年第4期

    新闻 F# 4.6预览 fuget.org现在显示包依赖从属,你曾经想要了解谁在使用你的类库吗?现在你可以知道了! F#被加入Wikipedia的流式接口页面 采访Erik Schierboom Az ...

  9. java_BufferedReader的一个应用

    应用来自于我做网页的时候,来读出一个txt文档,由于输出到页面的时候总是没有排版,但是原文件中有换行符,之前是使用的byte数组传输,但是这样无法换行 就使用了BufferedReader,因为它是一 ...

  10. vim创建程序文件自动添加头部注释/自动文件头注释与模板定义

    Vim 自动文件头注释与模板定义 在vim的配置文件.vimrc添加一些配置可以实现创建新文件时自动添加文件头注释,输入特定命令可以生成模板. 使用方法 插入模式输入模式输入seqlogic[Ente ...